Skip to content

Commit 6e1a59c

Browse files
committed
regenerate Python samples
1 parent 700a2f7 commit 6e1a59c

96 files changed

Lines changed: 0 additions & 480 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/openapi_client/models/bird.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8181
if not isinstance(obj, dict):
8282
return cls.model_validate(obj)
8383

84-
# raise errors for additional fields in the input
85-
for _key in obj.keys():
86-
if _key not in cls.__properties:
87-
raise ValueError("Error due to additional fields (not defined in Bird) in the input: " + _key)
88-
8984
_obj = cls.model_validate({
9085
"size": obj.get("size"),
9186
"color": obj.get("color")

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8181
if not isinstance(obj, dict):
8282
return cls.model_validate(obj)
8383

84-
# raise errors for additional fields in the input
85-
for _key in obj.keys():
86-
if _key not in cls.__properties:
87-
raise ValueError("Error due to additional fields (not defined in Category) in the input: " + _key)
88-
8984
_obj = cls.model_validate({
9085
"id": obj.get("id"),
9186
"name": obj.get("name")

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8484
if not isinstance(obj, dict):
8585
return cls.model_validate(obj)
8686

87-
# raise errors for additional fields in the input
88-
for _key in obj.keys():
89-
if _key not in cls.__properties:
90-
raise ValueError("Error due to additional fields (not defined in DataQuery) in the input: " + _key)
91-
9287
_obj = cls.model_validate({
9388
"id": obj.get("id"),
9489
"outcomes": obj.get("outcomes"),

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
114114
if not isinstance(obj, dict):
115115
return cls.model_validate(obj)
116116

117-
# raise errors for additional fields in the input
118-
for _key in obj.keys():
119-
if _key not in cls.__properties:
120-
raise ValueError("Error due to additional fields (not defined in DefaultValue) in the input: " + _key)
121-
122117
_obj = cls.model_validate({
123118
"array_string_enum_ref_default": obj.get("array_string_enum_ref_default"),
124119
"array_string_enum_default": obj.get("array_string_enum_default"),

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8383
if not isinstance(obj, dict):
8484
return cls.model_validate(obj)
8585

86-
# raise errors for additional fields in the input
87-
for _key in obj.keys():
88-
if _key not in cls.__properties:
89-
raise ValueError("Error due to additional fields (not defined in NumberPropertiesOnly) in the input: " + _key)
90-
9186
_obj = cls.model_validate({
9287
"number": obj.get("number"),
9388
"float": obj.get("float"),

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
107107
if not isinstance(obj, dict):
108108
return cls.model_validate(obj)
109109

110-
# raise errors for additional fields in the input
111-
for _key in obj.keys():
112-
if _key not in cls.__properties:
113-
raise ValueError("Error due to additional fields (not defined in Pet) in the input: " + _key)
114-
115110
_obj = cls.model_validate({
116111
"id": obj.get("id"),
117112
"name": obj.get("name"),

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8181
if not isinstance(obj, dict):
8282
return cls.model_validate(obj)
8383

84-
# raise errors for additional fields in the input
85-
for _key in obj.keys():
86-
if _key not in cls.__properties:
87-
raise ValueError("Error due to additional fields (not defined in Tag) in the input: " + _key)
88-
8984
_obj = cls.model_validate({
9085
"id": obj.get("id"),
9186
"name": obj.get("name")

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8080
if not isinstance(obj, dict):
8181
return cls.model_validate(obj)
8282

83-
# raise errors for additional fields in the input
84-
for _key in obj.keys():
85-
if _key not in cls.__properties:
86-
raise ValueError("Error due to additional fields (not defined in TestFormObjectMultipartRequestMarker) in the input: " + _key)
87-
8883
_obj = cls.model_validate({
8984
"name": obj.get("name")
9085
})

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8383
if not isinstance(obj, dict):
8484
return cls.model_validate(obj)
8585

86-
# raise errors for additional fields in the input
87-
for _key in obj.keys():
88-
if _key not in cls.__properties:
89-
raise ValueError("Error due to additional fields (not defined in TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter) in the input: " + _key)
90-
9186
_obj = cls.model_validate({
9287
"size": obj.get("size"),
9388
"color": obj.get("color"),

samples/client/echo_api/python/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8080
if not isinstance(obj, dict):
8181
return cls.model_validate(obj)
8282

83-
# raise errors for additional fields in the input
84-
for _key in obj.keys():
85-
if _key not in cls.__properties:
86-
raise ValueError("Error due to additional fields (not defined in TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter) in the input: " + _key)
87-
8883
_obj = cls.model_validate({
8984
"values": obj.get("values")
9085
})

0 commit comments

Comments
 (0)