Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Validating enums is silently skipped if "type" is missing #8

Open
tscheburaschka opened this issue May 16, 2017 · 0 comments
Open

Validating enums is silently skipped if "type" is missing #8

tscheburaschka opened this issue May 16, 2017 · 0 comments

Comments

@tscheburaschka
Copy link

tscheburaschka commented May 16, 2017

If a schema element contains no "type" field, the validation of an "enum" field is silently skipped.
The enum should be validated without type or an error should be raised complaining about the invalid schema.
Example:
schema.json: { "enum": [ "boo", "far"] }
payload.json: "Hello World"
passes silently with obj = 'Hello World'.

tscheburaschka pushed a commit to tscheburaschka/ansatz27 that referenced this issue May 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant