Skip to content

Commit

Permalink
Fix link to model_dump_json() (#8851)
Browse files Browse the repository at this point in the history
  • Loading branch information
MamfTheKramf committed Feb 19, 2024
1 parent 918402f commit 5d09b47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/concepts/json_schema.md
Expand Up @@ -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:
Expand Down

0 comments on commit 5d09b47

Please sign in to comment.