We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi there!
First of all, kudos for your great work!
I started to use this library, and my data structure serializes the enums using their values instead of the name.
Are you willing to accept a PR to allow the parsing of the enum both by name or value?
The text was updated successfully, but these errors were encountered:
feat: parse enums by value
fee1262
closes Zaharid#2
I have added a feature to define custom parsers, documented here
https://validobj.readthedocs.io/en/latest/custom.html
It should allow to more or less easily implement this kind of logic externally.
Sorry, something went wrong.
Thanks, I will try that ASAP.
This is also handy for numpy arrays and pydantic models!
Successfully merging a pull request may close this issue.
Hi there!
First of all, kudos for your great work!
I started to use this library, and my data structure serializes the enums using their values instead of the name.
Are you willing to accept a PR to allow the parsing of the enum both by name or value?
The text was updated successfully, but these errors were encountered: