You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
For generating OpenAPI docs, dataclasses and Pydantic are available.
Dataclasses do not cover as much as Pydantic to specify OpenAPI definitions.
Pydantic offers more, but instead of relying on a third party, can we define
field
tailored to OpenAPI something likehttps://github.com/quantmind/aio-openapi
Or can we use metadata field from builtin
dataclasses
:minLength
corresponds to actual key used to specify minimum length of field in request body in OpenAPI spec.Of course this would need knowledge of OpenAPI spec but that would be more beneficial than learning a library.
Beta Was this translation helpful? Give feedback.
All reactions