Skip to content

Take 2: create model from JSON schema aka model_load_json_schema() #6598

Closed Answered by samuelcolvin
fabiog1901 asked this question in Question
Discussion options

You must be logged in to vote

Sure datamodel-code-generator is what you looking for https://docs.pydantic.dev/latest/integrations/datamodel_code_generator/.

Or you could write something that converted JSON Schema to pydantic core schema directly.

We won't be adding this functionality directly to pydantic.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by samuelcolvin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants