From 5d09b4754d4abcdfefaae554de4dae36124a683c Mon Sep 17 00:00:00 2001 From: MamfTheKramf <67541838+MamfTheKramf@users.noreply.github.com> Date: Mon, 19 Feb 2024 20:58:48 +0100 Subject: [PATCH] Fix link to model_dump_json() (#8851) --- docs/concepts/json_schema.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/concepts/json_schema.md b/docs/concepts/json_schema.md index 3e7bc98ceb..9f30a3ca5b 100644 --- a/docs/concepts/json_schema.md +++ b/docs/concepts/json_schema.md @@ -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: