Skip to content

Commit 20b18ad

Browse files
committed
update python samples
1 parent bfe5ca8 commit 20b18ad

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/uuid_with_pattern.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def id_validate_regular_expression(cls, value):
4141
return value
4242

4343
model_config = ConfigDict(
44-
populate_by_name=True,
44+
validate_by_name=True,
45+
validate_by_alias=True,
4546
validate_assignment=True,
4647
protected_namespaces=(),
4748
)

samples/openapi3/client/petstore/python-httpx/petstore_api/models/uuid_with_pattern.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def id_validate_regular_expression(cls, value):
4141
return value
4242

4343
model_config = ConfigDict(
44-
populate_by_name=True,
44+
validate_by_name=True,
45+
validate_by_alias=True,
4546
validate_assignment=True,
4647
protected_namespaces=(),
4748
)

samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/uuid_with_pattern.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ def id_validate_regular_expression(cls, value):
4242
return value
4343

4444
model_config = ConfigDict(
45-
populate_by_name=True,
45+
validate_by_name=True,
46+
validate_by_alias=True,
4647
validate_assignment=True,
4748
protected_namespaces=(),
4849
)

samples/openapi3/client/petstore/python/petstore_api/models/uuid_with_pattern.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ def id_validate_regular_expression(cls, value):
4242
return value
4343

4444
model_config = ConfigDict(
45-
populate_by_name=True,
45+
validate_by_name=True,
46+
validate_by_alias=True,
4647
validate_assignment=True,
4748
protected_namespaces=(),
4849
)

0 commit comments

Comments
 (0)