We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe719f4 commit 0ac8709Copy full SHA for 0ac8709
graphene_pydantic/converters.py
@@ -68,7 +68,7 @@ def convert_pydantic_input_field(
68
),
69
)
70
field_kwargs.setdefault("required", field.is_required())
71
- field_kwargs.setdefault("default_value", None if PydanticUndefined else field.default)
+ field_kwargs.setdefault("default_value", None if type(field.default) is PydanticUndefined else field.default)
72
# TODO: find a better way to get a field's description. Some ideas include:
73
# - hunt down the description from the field's schema, or the schema
74
# from the field's base model
0 commit comments