I get this error from the Google RichSnippets testing tool:
Error: Page contains property "query-input" which is not part of the schema.
But where did I make a mistake?
HTML:
<div id="dkAjaxSearch">
<input id="ajaxSearch" type="text" value="" name="search_term" itemprop="query-input">
Press Enter to search
</div>
JSON-LD:
<script type="application/ld+json">
{
   "@context": "http://schema.org",
   "@type": "WebSite",
   "url": "https://domain.com/",
   "potentialAction": {
     "@type": "SearchAction",
     "target": "http://domain.com/search/{search_term_string}",
     "query-input": "required name=search_term_string"
   }
}
</script>
Documentation: An improved search box within the search results
 
                        
It’s explained in the documentation about Actions:
But as this property does not exist (i.e., it’s not defined in the property table on
SearchAction), validators report it as an error.This issue already gets discussed on Schema.org’s GitHub: SearchAction example uses "query-input" property that is not defined
So you did not do something wrong. Unless Schema.org decides that Actions should be handled in a different way, validators should probably update and allow
-inputand-outputsuffixes.