Skip to content

Commit b216a46

Browse files
committed
set defaults properly with .value
1 parent 98619c1 commit b216a46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fastapi_code_generator/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ def main(
5959
),
6060
disable_timestamp: bool = typer.Option(False, "--disable-timestamp"),
6161
output_model_type: DataModelType = typer.Option(
62-
DataModelType.PydanticBaseModel, "--output-model-type", "-d"
62+
DataModelType.PydanticBaseModel.value, "--output-model-type", "-d"
6363
),
6464
python_version: PythonVersion = typer.Option(
65-
PythonVersion.PY_38, "--python-version", "-p"
65+
PythonVersion.PY_38.value, "--python-version", "-p"
6666
),
6767
) -> None:
6868
input_name: str = input_file

0 commit comments

Comments
 (0)