Skip to content

Commit bff5521

Browse files
committed
fix(python): allow extra properties, lax type check
1 parent cd0cd49 commit bff5521

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

templates/python/model_generic.mustache

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,13 @@ class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}}
7070
{{/vars}}
7171

7272
model_config = ConfigDict(
73+
strict=False,
7374
use_enum_values=True,
7475
populate_by_name=True,
7576
validate_assignment=True,
7677
protected_namespaces=(),
7778
alias_generator=_alias_generator,
78-
{{#isAdditionalPropertiesTrue}}
7979
extra='allow',
80-
{{/isAdditionalPropertiesTrue}}
8180
)
8281

8382
def to_json(self) -> str:

0 commit comments

Comments
 (0)