-
-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
msgspec: Optional fields are missing a default when using --snake-case-field
#1920
Comments
koxudaxi/datamodel-code-generator#1920 In addition use datetime instead of strings
@maringuu https://github.com/jcrist/msgspec/blob/13a06dd88bcf553bb0497da3b3f0a2a628627ed6/msgspec/__init__.py#L20 |
No, it is an issue. |
Steps to reproduce
class CpeMatch
(and most other classes as well).vs
Note that the optional fields are missing the
default=None
parameter in thefield
call.Expected behavior
The field should have a default of value
None
.Workaround
Do not use
--snake-case-field
.Setup
The text was updated successfully, but these errors were encountered: