Fatal1ty / mashumaro

Fast and well tested serialization library
Apache License 2.0
774 stars 45 forks source link

Json schema, mark dataclass fields with default_factory as non required #122

Closed mishamsk closed 1 year ago

mishamsk commented 1 year ago

This adds a minimal fix to prevent marking dataclass fields with default_factory as required in the schema.

I opted to not populate the default key in the schema similar to pydantic.

Resolves #114

Fatal1ty commented 1 year ago

Looks good, thank you!