Results of 1 - 1 of about 1 for verse (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
...ad_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 Optional from...ad_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 import BaseMo...ad_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+ from fastapi... - https://man.mtool.work/fastapi/0.115/how-to/separate-openapi-schemas/
PREV
1
NEXT