More support for OpenAPI #337
techntools
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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