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
Is your feature request related to a problem? Please describe.
Many users, including me, want to generate JSON Schema for their dataclasses. This can be useful for further integration into web frameworks. Thanks to the rich and tested data type support in mashumaro, it is pretty straightforward to add such functionality. The main difficulty will be to support various specifications, some of which are as follows:
Is your feature request related to a problem? Please describe.
Many users, including me, want to generate JSON Schema for their dataclasses. This can be useful for further integration into web frameworks. Thanks to the rich and tested data type support in mashumaro, it is pretty straightforward to add such functionality. The main difficulty will be to support various specifications, some of which are as follows:
Examples of who needs this feature:
hologram
dbt-labs/dbt-core#6776Describe the solution you'd like
Linked PR:
I see it this way:
Here
builder.build(User)
will generate the following schema:A separated
get_definitions
method can be used to get all subschema definitions that can be referenced to:Here
builder.get_definitions()
will produce the following schema:Open questions to discuss
The following questions come to mind
The text was updated successfully, but these errors were encountered: