You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Jason Gerlowski (Jira)" <ji...@apache.org> on 2023/02/24 12:40:00 UTC
[jira] [Resolved] (SOLR-15796) Add Better Enum support for @JsonProperty annotations
[ https://issues.apache.org/jira/browse/SOLR-15796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Gerlowski resolved SOLR-15796.
------------------------------------
Resolution: Invalid
Closing this ticket as 'invalid' since we have moved away from the custom v2 framework.
> Add Better Enum support for @JsonProperty annotations
> -----------------------------------------------------
>
> Key: SOLR-15796
> URL: https://issues.apache.org/jira/browse/SOLR-15796
> Project: Solr
> Issue Type: Improvement
> Components: v2 API
> Reporter: Jason Gerlowski
> Priority: Major
> Labels: V2
>
> JsonSchemaValidator (which appears to check input v2 JSON), has some support for enums, but it doesn't appear to work the way one would expect.
> Particularly, during input validation it checks for enum fields to be a Java {{{}List{}}}. (I would expect it to be taking String input and verifying that the string can be massaged into an enum value.)
> This ticket aims to cover widening JsonSchemaValidator's v2 support so that things like "replicatype" in request bodies can be enum-based instead of the less-string "string" type they are today.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org