Skip to content

How can alias in pydantic model be preserved? #538

Answered by Alc-Alc
impaktor asked this question in Q&A
Discussion options

You must be logged in to vote

Not sure I understood this, but isn't this just about doing d_rand = {"Message": MessageFactory.build().dict(by_alias=True)}?

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@impaktor
Comment options

@Alc-Alc
Comment options

Answer selected by impaktor
Comment options

You must be logged in to vote
3 replies
@Alc-Alc
Comment options

@impaktor
Comment options

@guacs
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants