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
Describe the bug
When contracted syntax maybe(:hash) is used it affects the output of .key_map which in order breaks valid path checks for rules in dry-validation.
maybe(:hash)
.key_map
To Reproduce
dry-schema> schema { required(:foo).maybe(:hash) { optional(:bar) } }.key_map => #<Dry::Schema::KeyMap[:foo]> dry-schema> schema { required(:foo).maybe { hash { optional(:bar) } } }.key_map => #<Dry::Schema::KeyMap[{:foo=>[:bar]}]>
Expected behavior
Outputs to be the same.
Your environment
The text was updated successfully, but these errors were encountered:
Merge pull request #269 from dry-rb/266/fix-key-map-in-maybe-hash
f79577d
Fix building up key maps for maybe(:hash) [changelog] fixed: "Key map is properly inferred for maybe-hashes (issue #266 fixed via #269) (@solnic)"
solnic
Successfully merging a pull request may close this issue.
Describe the bug
When contracted syntax
maybe(:hash)
is used it affects the output of.key_map
which in order breaks valid path checks for rules in dry-validation.To Reproduce
Expected behavior
Outputs to be the same.
Your environment
The text was updated successfully, but these errors were encountered: