brutusin / brutusin/json-forms

Validation failure of enum value

Open
#135 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
618
Forks
171
PR merge metrics
No merged PRs in 30d

Description

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"
}

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.