We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc15d3e commit 49c94ffCopy full SHA for 49c94ff
1 file changed
codegen/lco/generator.py
@@ -44,7 +44,7 @@ def get_extra_params_fields(extra_params_validation_schema: dict) -> dict:
44
# Add description to Annotated field. Annotated fields must have at least 2 properties.
45
field_class += f', "{properties.get("description", "")}"]'
46
if not properties.get("required", False) and "default" not in properties:
47
- # The field is considered optional if it doesn't have a default or required is set to True
+ # The field is considered optional if it doesn't have a default or required is not set to True
48
field_class += " | None = None"
49
elif "default" in properties:
50
# If a default value is present, provide it
0 commit comments