Skip to content

Commit

Permalink
add it back
Browse files Browse the repository at this point in the history
  • Loading branch information
benpankow committed Oct 10, 2023
1 parent 1d73630 commit 28fc043
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ def __init__(self, **config_dict) -> None:
for key, value in config_dict.items():
field = self.__fields__.get(key)

if field and not field.required and value is None:
continue

if field and field.field_info.discriminator:
nested_dict = value

Expand Down

0 comments on commit 28fc043

Please sign in to comment.