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: delay hex-int validation error when None values for non-optional #2346

Merged
merged 2 commits into from
Oct 26, 2024

Conversation

antazoey
Copy link
Member

What I did

was just getting mehh conversion errors that didnt help much in this context.
was expecting pydantic errors instead

How I did it

if None, dont try to convert. instead let it fail later on in pydantic

How to verify it

have a model using non-optional HexInt
ignore that key
ensure you get a nice pydantic validation error instead of a conversion error

Checklist

  • All changes are completed
  • New test cases have been added
  • Documentation has been updated

@antazoey antazoey enabled auto-merge (squash) October 26, 2024 19:04
@antazoey antazoey merged commit 09492dc into ApeWorX:main Oct 26, 2024
16 checks passed
@antazoey antazoey deleted the fix/hex-int-delay-fail-when-none branch October 26, 2024 19:48
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