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?
to your account
I was wondering what the best way to validate subclasses is?
Something along the sorts of
where I would expect both
to work, but
to throw an error.
Is the way to go to implement a custom type or is there a way pydantic supports this out-of-the-box?
Have a good weekend :)
The text was updated successfully, but these errors were encountered:
Might be possible to achieve this now using validator decorators. Please let us know whether or not you get it to work.
I'd be happy to accept a PR to implement it out of the box if it's something multiple people want.
Sorry, something went wrong.
Alright, I've been freeriding long enough. 😉
Just made a MR that should resolve the issue. :)
Thanks for making an awesome library. pydantic rocks 💯
Successfully merging a pull request may close this issue.