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

Fail validation if required property is zero value #352

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jawn-smith
Copy link

Fixes #351

I'm very much open to discussion if you think there's a better way to do this. We could do a switch statement based on the Type of propertyValue and only perform this check for strings for example.

@Surfoo
Copy link

Surfoo commented Oct 26, 2022

Hello,
This repository is not maintained anymore, the new one is https://github.com/gojsonschema/gojsonschema, could you submit your PR on this one? Thank you!

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

Successfully merging this pull request may close these issues.

Validation should fail if required key is Go Zero Value for the corresponding type
2 participants