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.
- is a child of
SOLR-15781 Make v2 APIs more REST-ful and migrate to JAX-RS