[ 
https://issues.apache.org/jira/browse/SOLR-14233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17026501#comment-17026501
 ] 

Andrzej Bialecki commented on SOLR-14233:
-----------------------------------------

I wasn't sure what to do about the item type introspection - there's a similar 
section for {{List.class}}, should we somehow indicate the item type here too? 

> 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
>            Priority: Major
>         Attachments: schema.patch
>
>
> 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