Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix link to model_dump_json()
Browse files Browse the repository at this point in the history
MamfTheKramf authored Feb 19, 2024

Verified

This commit was signed with the committer’s verified signature.
nickvergessen Joas Schilling
1 parent 9baad29 commit 010f27c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/concepts/json_schema.md
Original file line number Diff line number Diff line change
@@ -1207,7 +1207,7 @@ print(validation_schema)
## Customizing the `$ref`s in JSON Schema

The format of `$ref`s can be altered by calling [`model_json_schema()`][pydantic.main.BaseModel.model_json_schema]
or `model_dump_json()`][pydantic.main.BaseModel.model_dump_json] with the `ref_template` keyword argument.
or [`model_dump_json()`][pydantic.main.BaseModel.model_dump_json] with the `ref_template` keyword argument.
The definitions are always stored under the key `$defs`, but a specified prefix can be used for the references.

This is useful if you need to extend or modify the JSON schema default definitions location. For example, with OpenAPI:

0 comments on commit 010f27c

Please sign in to comment.