Closed marcelosousa closed 2 years ago
This seems likely to be an implementation error, which you'd need to file with the maintainer of whatever implementation you're using. Your use of enum
looks fine. Although in "#/properties/rules
you are using minProperties
and additionalProperties
which do not affect arrays at all. You probably wanted minItems
and additionalItems
(or maxItems
). But that shouldn't impact how enum
is handled.
Hi!
Not sure if this is the right place but I'm getting unexpected behaviour with the validation of the schema when it comes to enums.
For example, consider the following schema:
For the following file:
I don't get any validation error as long as the value in
kind
is a prefix of "tested".