Skip to content

How to pass context to Schema.from_orm()? #929

Answered by vitalik
yshalsager asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @yshalsager

Please upgrade to latest (1.0.1) - to pass context:

SomeSchema.from_orm(obj, context={'foo': 'bar'}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yshalsager
Comment options

Answer selected by yshalsager
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