json-forms
json-forms copied to clipboard
Validation failure of enum value
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" }
{ "type": "object", "properties": { "id": { "type": "string", "enum": ["good", "bad"] } } }