Skip to content

Conversation

@binaryDiv
Copy link
Contributor

@binaryDiv binaryDiv commented Sep 22, 2022

This PR adds the case_insensitive parameter to the AnyOfValidator and EnumValidator.

If set, string matching will be case-insensitive. The AnyOfValidator will return the strings as defined in the list of allowed values.

Additionally, this PR adds the list of allowed values to the ValueNotAllowedError raised by the AnyOfValidator and EnumValidator (unless this list is too long).

@binaryDiv binaryDiv added the enhancement Improvements to existing features or smaller new features label Sep 22, 2022
@binaryDiv binaryDiv self-assigned this Sep 22, 2022
@binaryDiv binaryDiv merged commit f357fda into main Sep 22, 2022
@binaryDiv binaryDiv deleted the case-insensitive-anyof-and-enum-validators branch September 22, 2022 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improvements to existing features or smaller new features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants