Andrzej Bialecki created SOLR-14233:
---------------------------------------

             Summary: JsonSchemaCreator should support Map payloads
                 Key: SOLR-14233
                 URL: https://issues.apache.org/jira/browse/SOLR-14233
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
    Affects Versions: 8.4.1
            Reporter: Andrzej Bialecki


While working on v2 API for SOLR-13579 I discovered that it's currently not 
possible to use API methods where the payload content is a {{java.util.Map}}. 
This is needed when passing arguments that are arbitrary key-value maps and not 
strictly-defined beans.

Specifically, I needed a method like this:
{code}
@Command(name = "setparams")
public void setParams(SolrQueryRequest req, SolrQueryResponse rsp, 
PayloadObj<Map<String, Object>> payload) {
...
}
{code}
But this declaration produced confusing errors during API registration.

Upon further digging I discovered that {{JsonSchemaCreator}} doesn't support 
Map payloads.

Attached patch seems to fix it.




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to