Skip to content

Commit

Permalink
Update Pydantic method name in path operation advanced configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmed Ashraf committed Dec 23, 2023
1 parent e7756ae commit 09bfcab
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -163,7 +163,7 @@ For example, in this application we don't use FastAPI's integrated functionality
```

!!! 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.

Expand Down

0 comments on commit 09bfcab

Please sign in to comment.