Skip to content

Commit 5918e69

Browse files
committed
samples
1 parent e3df5ff commit 5918e69

401 files changed

Lines changed: 789 additions & 401 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/bird.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ class Bird(BaseModel):
3232
__properties: ClassVar[List[str]] = ["size", "color"]
3333

3434
model_config = ConfigDict(
35-
populate_by_name=True,
35+
validate_by_name=True,
36+
validate_by_alias=True,
3637
validate_assignment=True,
3738
protected_namespaces=(),
3839
)

samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/category.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ class Category(BaseModel):
3232
__properties: ClassVar[List[str]] = ["id", "name"]
3333

3434
model_config = ConfigDict(
35-
populate_by_name=True,
35+
validate_by_name=True,
36+
validate_by_alias=True,
3637
validate_assignment=True,
3738
protected_namespaces=(),
3839
)

samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/data_query.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ class DataQuery(Query):
3535
__properties: ClassVar[List[str]] = ["id", "outcomes", "suffix", "text", "date"]
3636

3737
model_config = ConfigDict(
38-
populate_by_name=True,
38+
validate_by_name=True,
39+
validate_by_alias=True,
3940
validate_assignment=True,
4041
protected_namespaces=(),
4142
)

samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/default_value.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ def array_string_enum_default_validate_enum(cls, value):
5050
return value
5151

5252
model_config = ConfigDict(
53-
populate_by_name=True,
53+
validate_by_name=True,
54+
validate_by_alias=True,
5455
validate_assignment=True,
5556
protected_namespaces=(),
5657
)

samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/number_properties_only.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ class NumberPropertiesOnly(BaseModel):
3434
__properties: ClassVar[List[str]] = ["number", "float", "double"]
3535

3636
model_config = ConfigDict(
37-
populate_by_name=True,
37+
validate_by_name=True,
38+
validate_by_alias=True,
3839
validate_assignment=True,
3940
protected_namespaces=(),
4041
)

samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/pet.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ def status_validate_enum(cls, value):
4848
return value
4949

5050
model_config = ConfigDict(
51-
populate_by_name=True,
51+
validate_by_name=True,
52+
validate_by_alias=True,
5253
validate_assignment=True,
5354
protected_namespaces=(),
5455
)

samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/query.py

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

4545
model_config = ConfigDict(
46-
populate_by_name=True,
46+
validate_by_name=True,
47+
validate_by_alias=True,
4748
validate_assignment=True,
4849
protected_namespaces=(),
4950
)

samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/tag.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ class Tag(BaseModel):
3232
__properties: ClassVar[List[str]] = ["id", "name"]
3333

3434
model_config = ConfigDict(
35-
populate_by_name=True,
35+
validate_by_name=True,
36+
validate_by_alias=True,
3637
validate_assignment=True,
3738
protected_namespaces=(),
3839
)

samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_form_object_multipart_request_marker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ class TestFormObjectMultipartRequestMarker(BaseModel):
3131
__properties: ClassVar[List[str]] = ["name"]
3232

3333
model_config = ConfigDict(
34-
populate_by_name=True,
34+
validate_by_name=True,
35+
validate_by_alias=True,
3536
validate_assignment=True,
3637
protected_namespaces=(),
3738
)

samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(BaseMod
3434
__properties: ClassVar[List[str]] = ["size", "color", "id", "name"]
3535

3636
model_config = ConfigDict(
37-
populate_by_name=True,
37+
validate_by_name=True,
38+
validate_by_alias=True,
3839
validate_assignment=True,
3940
protected_namespaces=(),
4041
)

0 commit comments

Comments
 (0)