schemas not compatible with openapi in litestar #976
YuriFontella
started this conversation in
General
Replies: 1 comment 7 replies
-
I think you've got a typo in your table definition, it should be: id = Serial(primary_key=True) You're right about needing to return Which UI are you using to view the documentation? Is it the Swagger UI? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to define the correct response in the api documentation
the schema:
In the route function directly assigns the class
But it did not generate a response in the documentation
I tried using pydantic
generated the data in the documentation, but it didn't come with the data type, I didn't understand where the
{}
comes fromI was waiting for this result:
Does anyone know the correct way to do this?
piccolo 1.5.0
litestar 2.7.1
python 3.12.2
Beta Was this translation helpful? Give feedback.
All reactions