json-forms icon indicating copy to clipboard operation
json-forms copied to clipboard

Validation failure of enum value

Open pcpiela opened this issue 6 years ago • 1 comments

After calling the render method with the following schema and initial data, calling the validate method returns an incorrect result of true.

schema: { "type": "object", "properties": { "id": { "type": "string", "enum": ["good"] } } }

Data to be validated:

{ "id": "bad" }

pcpiela avatar Dec 12 '18 23:12 pcpiela

{ "type": "object", "properties": { "id": { "type": "string", "enum": ["good", "bad"] } } }

peeyush12345 avatar Jun 25 '23 17:06 peeyush12345