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 setting validate_keys as true, empty hashes are being ignored by the validator
validate_keys
schema = Dry::Schema.JSON do config.validate_keys = true end schema.({hello: {}}) => #<Dry::Schema::Result{} errors={}> schema.({hello: 1}) => #<Dry::Schema::Result{} errors={:hello=>["is not allowed"]}>
Unexpected key hello should be in the errors hash regardless of the key's value
hello
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When setting
validate_keys
as true, empty hashes are being ignored by the validatorTo Reproduce
Expected behavior
Unexpected key
hello
should be in the errors hash regardless of the key's valueMy environment
The text was updated successfully, but these errors were encountered: