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

Fix the filtering of attributes validated with SchemaValidations::Validators::NotNilValidator #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dark-panda
Copy link

Sorry, but I wasn't able to get the specs running correctly on my setup,
so I have not included updated specs in the patch.

This appears to be a special case where the name parameter of
#_filter_validation is set to SchemaValidations::Validators::NotNilValidator
and the actual name is found in the :attribute option in opts.
Filtering-by-name using the only, except, etc. configurations see
the wrong name value in these cases and will not be filtered
correctly as a result.

…idators::NotNilValidator

This appears to be a special case where the `name` parameter of
`#_filter_validation` is set to `SchemaValidations::Validators::NotNilValidator`
and the actual name is found in the `:attribute` option in `opts`.
Filtering-by-name using the `only`, `except`, etc. configurations see
the wrong `name` value in these cases and will not be filtered
correctly as a result.
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.

1 participant