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

Don't allow empty/hex strings to be validated as numeric strings #2109

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

iamacook
Copy link
Member

@iamacook iamacook commented Nov 8, 2024

Summary

Our NumericStringSchema validates empty strings (0) and hexadecimal strings, but it shouldn't. This prevents empty/hex strings from passing validation.

Note: it also corrects mock data that was assumed hex, when it should be numeric.

Changes

  • Prevent empty/hex strings from passing
  • Fix mock data accordingly
  • Add relevant test coverage

@iamacook iamacook self-assigned this Nov 8, 2024
@iamacook iamacook requested a review from a team as a code owner November 8, 2024 12:49
@hectorgomezv hectorgomezv merged commit 69edeec into main Nov 13, 2024
20 checks passed
@hectorgomezv hectorgomezv deleted the fix-numeric-string branch November 13, 2024 11:32
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.

2 participants