Closed acoover closed 4 years ago
Huh. How would this handle non-string enums?
What's an example of a non-string enumeration? My understanding is that the enum
field is only applicable for a parameter of type string
I agree it's a strange case. I guess this is a question of being accurate to the schema, or supporting only common cases. I was trying to stick with accurateness, to extend the compatibility of this tool with other use cases.
https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1, from https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md
I see, the json schema specifies the enum
field as a "Validation keyword for any instance type"
This ensures we can specify fixtures for enumerated parameters