Unable to see Pydantic Model data types with scalar-fastapi ui. #6917
Replies: 1 comment
-
|
Yes, you're right! Closing as a duplicate of #6693. ✌️ |
Beta Was this translation helpful? Give feedback.
0 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.
-
I am unable to see the data types of the pydantic models in the scalar ui whereas it is visible in swagger ui and redoc ui.
This is the code:
Version Info
Python version: 3.12.2This is the snip of the Scalar ui

Notice that the type information of content
(string), destination(string)and weight_in_grams(int)are missing.Attaching the swagger ui snip

Here, the data types of the fields are given very clearly for input and output models.
I know the data types can be guessed from the model field properties but I prefer having the actual data type displayed.
Also I am starting to like this ui instead of the swagger ui.
Is there any way to display data type information as weel in this ui?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions