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 7c9915f commit bf5e61eCopy full SHA for bf5e61e
ellar/common/params/args/resolver_generators.py
@@ -16,7 +16,6 @@
16
is_scalar_field,
17
is_scalar_sequence_field,
18
)
19
-from ellar.pydantic.utils import is_field_annotation_nullable
20
21
from .factory import get_parameter_field
22
@@ -83,11 +82,6 @@ def get_parameter_field(
83
82
def generate_resolvers(self, body_field_class: t.Type[FieldInfo]) -> None:
84
resolvers = []
85
for k, field in self.pydantic_outer_type.model_fields.items():
86
- field.default = (
87
- None
88
- if is_field_annotation_nullable(field.annotation)
89
- else field.default
90
- )
91
model_field = create_model_field(
92
name=k,
93
type_=field.annotation, # type:ignore[arg-type]
0 commit comments