Skip to content

Commit

Permalink
Fixing schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jmp1985 committed Jun 13, 2024
1 parent 36eca52 commit 664d9b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/ext/pydantic_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def walk(obj):

# Parse the definitions
definitions = nodes.paragraph()
for key, value in schema["definitions"].items():
for key, value in schema["$defs"].items():
definition = nodes.section(ids=[nodes.make_id(key)])
definition += nodes.title(text=key)
definition += walk(value)
Expand All @@ -108,7 +108,7 @@ def from_import(self, loc):
raise e

# Get the schema
return obj.schema()
return obj.model_json_schema()


def setup(app):
Expand Down

0 comments on commit 664d9b5

Please sign in to comment.