Skip to content

Commit dab8f3d

Browse files
chore(deps): update openapitools/openapi-generator-cli docker tag to v7.8.0
1 parent 54e1bb1 commit dab8f3d

37 files changed

+185
-178
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https:
55

66
- API version: v4.0.8.1874
77
- Package version: 1.0.1 <!--- x-release-please-version -->
8-
- Generator version: 7.7.0
8+
- Generator version: 7.8.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

1111
## Requirements.

sonarr/api_client.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import datetime
1616
from dateutil.parser import parse
1717
from enum import Enum
18+
import decimal
1819
import json
1920
import mimetypes
2021
import os
@@ -66,6 +67,7 @@ class ApiClient:
6667
'bool': bool,
6768
'date': datetime.date,
6869
'datetime': datetime.datetime,
70+
'decimal': decimal.Decimal,
6971
'object': object,
7072
}
7173
_pool = None
@@ -338,6 +340,7 @@ def sanitize_for_serialization(self, obj):
338340
If obj is str, int, long, float, bool, return directly.
339341
If obj is datetime.datetime, datetime.date
340342
convert to string in iso8601 format.
343+
If obj is decimal.Decimal return string representation.
341344
If obj is list, sanitize each element in the list.
342345
If obj is dict, return the dict.
343346
If obj is OpenAPI model, return the properties dict.
@@ -363,6 +366,8 @@ def sanitize_for_serialization(self, obj):
363366
)
364367
elif isinstance(obj, (datetime.datetime, datetime.date)):
365368
return obj.isoformat()
369+
elif isinstance(obj, decimal.Decimal):
370+
return str(obj)
366371

367372
elif isinstance(obj, dict):
368373
obj_dict = obj
@@ -454,6 +459,8 @@ def __deserialize(self, data, klass):
454459
return self.__deserialize_date(data)
455460
elif klass == datetime.datetime:
456461
return self.__deserialize_datetime(data)
462+
elif klass == decimal.Decimal:
463+
return decimal.Decimal(data)
457464
elif issubclass(klass, Enum):
458465
return self.__deserialize_enum(data, klass)
459466
else:

sonarr/models/auto_tagging_resource.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ def to_dict(self) -> Dict[str, Any]:
7676
# override the default output from pydantic by calling `to_dict()` of each item in specifications (list)
7777
_items = []
7878
if self.specifications:
79-
for _item in self.specifications:
80-
if _item:
81-
_items.append(_item.to_dict())
79+
for _item_specifications in self.specifications:
80+
if _item_specifications:
81+
_items.append(_item_specifications.to_dict())
8282
_dict['specifications'] = _items
8383
# set to None if name (nullable) is None
8484
# and model_fields_set contains the field

sonarr/models/auto_tagging_specification_schema.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ def to_dict(self) -> Dict[str, Any]:
7878
# override the default output from pydantic by calling `to_dict()` of each item in fields (list)
7979
_items = []
8080
if self.fields:
81-
for _item in self.fields:
82-
if _item:
83-
_items.append(_item.to_dict())
81+
for _item_fields in self.fields:
82+
if _item_fields:
83+
_items.append(_item_fields.to_dict())
8484
_dict['fields'] = _items
8585
# set to None if name (nullable) is None
8686
# and model_fields_set contains the field

sonarr/models/blocklist_resource.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,19 +88,19 @@ def to_dict(self) -> Dict[str, Any]:
8888
# override the default output from pydantic by calling `to_dict()` of each item in languages (list)
8989
_items = []
9090
if self.languages:
91-
for _item in self.languages:
92-
if _item:
93-
_items.append(_item.to_dict())
91+
for _item_languages in self.languages:
92+
if _item_languages:
93+
_items.append(_item_languages.to_dict())
9494
_dict['languages'] = _items
9595
# override the default output from pydantic by calling `to_dict()` of quality
9696
if self.quality:
9797
_dict['quality'] = self.quality.to_dict()
9898
# override the default output from pydantic by calling `to_dict()` of each item in custom_formats (list)
9999
_items = []
100100
if self.custom_formats:
101-
for _item in self.custom_formats:
102-
if _item:
103-
_items.append(_item.to_dict())
101+
for _item_custom_formats in self.custom_formats:
102+
if _item_custom_formats:
103+
_items.append(_item_custom_formats.to_dict())
104104
_dict['customFormats'] = _items
105105
# override the default output from pydantic by calling `to_dict()` of series
106106
if self.series:

sonarr/models/blocklist_resource_paging_resource.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ def to_dict(self) -> Dict[str, Any]:
7878
# override the default output from pydantic by calling `to_dict()` of each item in records (list)
7979
_items = []
8080
if self.records:
81-
for _item in self.records:
82-
if _item:
83-
_items.append(_item.to_dict())
81+
for _item_records in self.records:
82+
if _item_records:
83+
_items.append(_item_records.to_dict())
8484
_dict['records'] = _items
8585
# set to None if sort_key (nullable) is None
8686
# and model_fields_set contains the field

sonarr/models/contract_field.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ def to_dict(self) -> Dict[str, Any]:
8989
# override the default output from pydantic by calling `to_dict()` of each item in select_options (list)
9090
_items = []
9191
if self.select_options:
92-
for _item in self.select_options:
93-
if _item:
94-
_items.append(_item.to_dict())
92+
for _item_select_options in self.select_options:
93+
if _item_select_options:
94+
_items.append(_item_select_options.to_dict())
9595
_dict['selectOptions'] = _items
9696
# set to None if name (nullable) is None
9797
# and model_fields_set contains the field

sonarr/models/custom_format_resource.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ def to_dict(self) -> Dict[str, Any]:
7575
# override the default output from pydantic by calling `to_dict()` of each item in specifications (list)
7676
_items = []
7777
if self.specifications:
78-
for _item in self.specifications:
79-
if _item:
80-
_items.append(_item.to_dict())
78+
for _item_specifications in self.specifications:
79+
if _item_specifications:
80+
_items.append(_item_specifications.to_dict())
8181
_dict['specifications'] = _items
8282
# set to None if name (nullable) is None
8383
# and model_fields_set contains the field

sonarr/models/custom_format_specification_schema.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,16 @@ def to_dict(self) -> Dict[str, Any]:
8080
# override the default output from pydantic by calling `to_dict()` of each item in fields (list)
8181
_items = []
8282
if self.fields:
83-
for _item in self.fields:
84-
if _item:
85-
_items.append(_item.to_dict())
83+
for _item_fields in self.fields:
84+
if _item_fields:
85+
_items.append(_item_fields.to_dict())
8686
_dict['fields'] = _items
8787
# override the default output from pydantic by calling `to_dict()` of each item in presets (list)
8888
_items = []
8989
if self.presets:
90-
for _item in self.presets:
91-
if _item:
92-
_items.append(_item.to_dict())
90+
for _item_presets in self.presets:
91+
if _item_presets:
92+
_items.append(_item_presets.to_dict())
9393
_dict['presets'] = _items
9494
# set to None if name (nullable) is None
9595
# and model_fields_set contains the field

sonarr/models/download_client_resource.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,19 +88,19 @@ def to_dict(self) -> Dict[str, Any]:
8888
# override the default output from pydantic by calling `to_dict()` of each item in fields (list)
8989
_items = []
9090
if self.fields:
91-
for _item in self.fields:
92-
if _item:
93-
_items.append(_item.to_dict())
91+
for _item_fields in self.fields:
92+
if _item_fields:
93+
_items.append(_item_fields.to_dict())
9494
_dict['fields'] = _items
9595
# override the default output from pydantic by calling `to_dict()` of message
9696
if self.message:
9797
_dict['message'] = self.message.to_dict()
9898
# override the default output from pydantic by calling `to_dict()` of each item in presets (list)
9999
_items = []
100100
if self.presets:
101-
for _item in self.presets:
102-
if _item:
103-
_items.append(_item.to_dict())
101+
for _item_presets in self.presets:
102+
if _item_presets:
103+
_items.append(_item_presets.to_dict())
104104
_dict['presets'] = _items
105105
# set to None if name (nullable) is None
106106
# and model_fields_set contains the field

0 commit comments

Comments
 (0)