Browse Source

✏️ Fix Pydantic method name in `docs/en/docs/advanced/path-operation-advanced-configuration.md` (#10826)

Co-authored-by: Ahmed Ashraf <root@xps>
pull/10694/merge
Ahmed Ashraf 1 year ago
committed by GitHub
parent
commit
1caee0f105
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/en/docs/advanced/path-operation-advanced-configuration.md

2
docs/en/docs/advanced/path-operation-advanced-configuration.md

@ -163,7 +163,7 @@ For example, in this application we don't use FastAPI's integrated functionality
``` ```
!!! info !!! info
In Pydantic version 1 the method to get the JSON Schema for a model was called `Item.schema()`, in Pydantic version 2, the method is called `Item.model_schema_json()`. In Pydantic version 1 the method to get the JSON Schema for a model was called `Item.schema()`, in Pydantic version 2, the method is called `Item.model_json_schema()`.
Nevertheless, although we are not using the default integrated functionality, we are still using a Pydantic model to manually generate the JSON Schema for the data that we want to receive in YAML. Nevertheless, although we are not using the default integrated functionality, we are still using a Pydantic model to manually generate the JSON Schema for the data that we want to receive in YAML.

Loading…
Cancel
Save