コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 1 of about 1 for multi (0.001 sec.)
Separate OpenAPI Schemas for Input and Output or Not 9414
Separate OpenAPI Schemas for Input and Output or Not Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . When using Pydantic v2 , the generated OpenAPI is a bit more e ... /" ) def read_items () -> list [ Item ]: return [ Item ( name = "Portal Gun" , description = "Device to travel through the multi-rick-verse" , ), Item ( name = "Plumbus" ), ] ? Other versions and variants Python 3.9+ Python 3.8+ from typing import Opt ... /" ) def read_items () -> list [ Item ]: return [ Item ( name = "Portal Gun" , description = "Device to travel through the multi-rick-verse" , ), Item ( name = "Plumbus" ), ] from typing import List , Union from fastapi import FastAPI from pydantic im ... /" ) def read_items () -> List [ Item ]: return [ Item ( name = "Portal Gun" , description = "Device to travel through the multi-rick-verse" , ), Item ( name = "Plumbus" ), ] Model for Input If you use this model as an input like here: Python 3.10+ fr ...
https://man.mtool.work/fastapi/0.115/how-to/separate-openapi-schemas/
PREV 1 NEXT