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

Rename error variants to have Violated postfix #83

Merged
merged 2 commits into from
Aug 12, 2023
Merged

Conversation

greyblake
Copy link
Owner

This fixes #82

Changes

Rename error variants to follow the following formular: <ValidationRule>Violated. This implies the following renames:

  • TooShort -> CharLenMinViolated
  • TooLong -> CharLenMaxViolated
  • Empty -> NotEmptyViolated
  • RegexMismatch -> RegexViolated
  • Invalid -> PredicateViolated
  • TooBig -> MaxViolated
  • TooSmall -> MinViolated
  • NotFinite -> FiniteViolated

@greyblake greyblake merged commit ab68f0e into master Aug 12, 2023
3 checks passed
@greyblake greyblake deleted the violated-postfix branch August 12, 2023 16:27
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.

Rename error variants to have Violated postfix
1 participant