Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation failure of enum value #135

Open
pcpiela opened this issue Dec 12, 2018 · 1 comment
Open

Validation failure of enum value #135

pcpiela opened this issue Dec 12, 2018 · 1 comment

Comments

@pcpiela
Copy link

pcpiela commented Dec 12, 2018

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 pushed a commit to pcpiela/json-forms that referenced this issue Dec 13, 2018
@peeyush12345
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants