We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
when using enum on a string, partial strings of the enum values are incorrectly marked as valid
schema:
{ "$schema": "http://json-schema.org/draft-07/schema", "type": "object", "properties": { "foo": { "enum": ["bar"] } } }
invalid input:
foo: b
valid input:
foo: bar
An issue should be identified as the value does not match any of the valid items in enum
no issue is identified with the invalid input above
The text was updated successfully, but these errors were encountered:
duplicate of this issue
Sorry, something went wrong.
No branches or pull requests
Describe the bug
when using enum on a string, partial strings of the enum values are incorrectly marked as valid
schema:
invalid input:
valid input:
Expected Behavior
An issue should be identified as the value does not match any of the valid items in enum
Current Behavior
no issue is identified with the invalid input above
Steps to Reproduce
Environment
The text was updated successfully, but these errors were encountered: