Open felixbecker opened 3 years ago
draft7 says: All other properties in a "$ref" object MUST be ignored
because of this enum
is ignored. this behavior is changed later drafts. latest drafts allow to use $ref
along with other keywords
as per draft7, the current behavior is correct
Hi, it seams that the enum validation on string fields does not work as expected.
I have the following example. Schema:
Request document
go code:
The following program prints the document is valid but it should not be. Testing Schema and Request in the https://www.jsonschemavalidator.net/ the validation fails.
Please advice if I miss something here otherwise I would say this could be a bug.