Skip to content

Do the Pydantic features 'alias' and 'allow_population_by_field_name' work with Ormar? #315

Answered by collerek
franzwollang asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, as of now pydantic aliases are not supported.

You can have different database column name (if you provide name attribute for a field), so it's already two different names to handle, didn't want to add a third one as this would complicate things.

Might be a possible enhancement.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by franzwollang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants