Skip to content

Commit

Permalink
Merge pull request #24 from dotX12/dev
Browse files Browse the repository at this point in the history
Fix bool default vale
  • Loading branch information
dotX12 authored May 5, 2023
2 parents 168a1ab + 3f623ff commit 7e9dfa8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyfa_converter/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ def param_maker(
def __fill_params(
cls, param: Callable[..., FieldInfo], model_field: ModelField, default: Any
) -> FieldInfo:
default_value = default if isinstance(default, bool) else default or None

return param(
default=default or None,
default=default_value,
alias=model_field.field_info.alias or None,
title=model_field.field_info.title or None,
description=model_field.field_info.description or None,
Expand Down

0 comments on commit 7e9dfa8

Please sign in to comment.