Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-15796

Add Better Enum support for @JsonProperty annotations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • None
    • None
    • v2 API

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gerlowskija Jason Gerlowski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: