Skip to content

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