- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for Trick (0.12 sec)
-
docs/en/docs/advanced/path-operation-advanced-configuration.md
Nevertheless, we can declare the expected schema for the request body. ### Custom OpenAPI content type Using this same trick, you could use a Pydantic model to define the JSON Schema that is then included in the custom OpenAPI schema section for the *path operation*. And you could do this even if the data type in the request is not JSON.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 7.7K bytes - Viewed (0) -
docs/de/docs/advanced/path-operation-advanced-configuration.md
Dennoch können wir das zu erwartende Schema für den Requestbody deklarieren. ### Benutzerdefinierter OpenAPI-Content-Type Mit demselben Trick könnten Sie ein Pydantic-Modell verwenden, um das JSON-Schema zu definieren, das dann im benutzerdefinierten Abschnitt des OpenAPI-Schemas für die *Pfadoperation* enthalten ist.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:27:23 GMT 2024 - 8.5K bytes - Viewed (0)