Pydantic model and dataclasses.dataclass generator for easy conversion of JSON, OpenAPI, JSON Schema, and YAML data sources.
2.44k
stars
281
forks
source link
Generate Annotated types instead of root types for string constraints #2018
Open
RonnyPfannschmidt opened 4 days ago
Is your feature request related to a problem? Please describe.
given a schema like
multiple root types are created and in turn create object indirection
Describe the solution you'd like
decare the types more directly like
Additional context Add any other context or screenshots about the feature request here.