Skip to content

Commit

Permalink
Merge pull request #20 from devopsarr/feature/code-generation
Browse files Browse the repository at this point in the history
chore(deps): update openapitools/openapi-generator-cli docker tag to v7.8.0
  • Loading branch information
devopsarr[bot] authored Aug 22, 2024
2 parents 64b6aca + a4006f9 commit 4066f4a
Show file tree
Hide file tree
Showing 39 changed files with 176 additions and 169 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https:

- API version: v1.33.2
- Package version: 1.0.0 <!--- x-release-please-version -->
- Generator version: 7.7.0
- Generator version: 7.8.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down
7 changes: 7 additions & 0 deletions overseerr/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import datetime
from dateutil.parser import parse
from enum import Enum
import decimal
import json
import mimetypes
import os
Expand Down Expand Up @@ -66,6 +67,7 @@ class ApiClient:
'bool': bool,
'date': datetime.date,
'datetime': datetime.datetime,
'decimal': decimal.Decimal,
'object': object,
}
_pool = None
Expand Down Expand Up @@ -338,6 +340,7 @@ def sanitize_for_serialization(self, obj):
If obj is str, int, long, float, bool, return directly.
If obj is datetime.datetime, datetime.date
convert to string in iso8601 format.
If obj is decimal.Decimal return string representation.
If obj is list, sanitize each element in the list.
If obj is dict, return the dict.
If obj is OpenAPI model, return the properties dict.
Expand All @@ -363,6 +366,8 @@ def sanitize_for_serialization(self, obj):
)
elif isinstance(obj, (datetime.datetime, datetime.date)):
return obj.isoformat()
elif isinstance(obj, decimal.Decimal):
return str(obj)

elif isinstance(obj, dict):
obj_dict = obj
Expand Down Expand Up @@ -454,6 +459,8 @@ def __deserialize(self, data, klass):
return self.__deserialize_date(data)
elif klass == datetime.datetime:
return self.__deserialize_datetime(data)
elif klass == decimal.Decimal:
return decimal.Decimal(data)
elif issubclass(klass, Enum):
return self.__deserialize_enum(data, klass)
else:
Expand Down
6 changes: 3 additions & 3 deletions overseerr/models/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in parts (list)
_items = []
if self.parts:
for _item in self.parts:
if _item:
_items.append(_item.to_dict())
for _item_parts in self.parts:
if _item_parts:
_items.append(_item_parts.to_dict())
_dict['parts'] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
Expand Down
6 changes: 3 additions & 3 deletions overseerr/models/get_cache2_xx_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in api_caches (list)
_items = []
if self.api_caches:
for _item in self.api_caches:
if _item:
_items.append(_item.to_dict())
for _item_api_caches in self.api_caches:
if _item_api_caches:
_items.append(_item_api_caches.to_dict())
_dict['apiCaches'] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
Expand Down
6 changes: 3 additions & 3 deletions overseerr/models/get_discover_movies2_xx_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in results (list)
_items = []
if self.results:
for _item in self.results:
if _item:
_items.append(_item.to_dict())
for _item_results in self.results:
if _item_results:
_items.append(_item_results.to_dict())
_dict['results'] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in results (list)
_items = []
if self.results:
for _item in self.results:
if _item:
_items.append(_item.to_dict())
for _item_results in self.results:
if _item_results:
_items.append(_item_results.to_dict())
_dict['results'] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in results (list)
_items = []
if self.results:
for _item in self.results:
if _item:
_items.append(_item.to_dict())
for _item_results in self.results:
if _item_results:
_items.append(_item_results.to_dict())
_dict['results'] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in results (list)
_items = []
if self.results:
for _item in self.results:
if _item:
_items.append(_item.to_dict())
for _item_results in self.results:
if _item_results:
_items.append(_item_results.to_dict())
_dict['results'] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
Expand Down
6 changes: 3 additions & 3 deletions overseerr/models/get_discover_tv2_xx_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in results (list)
_items = []
if self.results:
for _item in self.results:
if _item:
_items.append(_item.to_dict())
for _item_results in self.results:
if _item_results:
_items.append(_item_results.to_dict())
_dict['results'] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in results (list)
_items = []
if self.results:
for _item in self.results:
if _item:
_items.append(_item.to_dict())
for _item_results in self.results:
if _item_results:
_items.append(_item_results.to_dict())
_dict['results'] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in results (list)
_items = []
if self.results:
for _item in self.results:
if _item:
_items.append(_item.to_dict())
for _item_results in self.results:
if _item_results:
_items.append(_item_results.to_dict())
_dict['results'] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in results (list)
_items = []
if self.results:
for _item in self.results:
if _item:
_items.append(_item.to_dict())
for _item_results in self.results:
if _item_results:
_items.append(_item_results.to_dict())
_dict['results'] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
Expand Down
6 changes: 3 additions & 3 deletions overseerr/models/get_issue2_xx_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in results (list)
_items = []
if self.results:
for _item in self.results:
if _item:
_items.append(_item.to_dict())
for _item_results in self.results:
if _item_results:
_items.append(_item_results.to_dict())
_dict['results'] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
Expand Down
6 changes: 3 additions & 3 deletions overseerr/models/get_media2_xx_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in results (list)
_items = []
if self.results:
for _item in self.results:
if _item:
_items.append(_item.to_dict())
for _item_results in self.results:
if _item_results:
_items.append(_item_results.to_dict())
_dict['results'] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
Expand Down
6 changes: 3 additions & 3 deletions overseerr/models/get_media_watch_data2_xx_response_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in users (list)
_items = []
if self.users:
for _item in self.users:
if _item:
_items.append(_item.to_dict())
for _item_users in self.users:
if _item_users:
_items.append(_item_users.to_dict())
_dict['users'] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
Expand Down
12 changes: 6 additions & 6 deletions overseerr/models/get_person_combined_credits2_xx_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,16 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in cast (list)
_items = []
if self.cast:
for _item in self.cast:
if _item:
_items.append(_item.to_dict())
for _item_cast in self.cast:
if _item_cast:
_items.append(_item_cast.to_dict())
_dict['cast'] = _items
# override the default output from pydantic by calling `to_dict()` of each item in crew (list)
_items = []
if self.crew:
for _item in self.crew:
if _item:
_items.append(_item.to_dict())
for _item_crew in self.crew:
if _item_crew:
_items.append(_item_crew.to_dict())
_dict['crew'] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
Expand Down
6 changes: 3 additions & 3 deletions overseerr/models/get_plex_sync2_xx_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in libraries (list)
_items = []
if self.libraries:
for _item in self.libraries:
if _item:
_items.append(_item.to_dict())
for _item_libraries in self.libraries:
if _item_libraries:
_items.append(_item_libraries.to_dict())
_dict['libraries'] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
Expand Down
6 changes: 3 additions & 3 deletions overseerr/models/get_search2_xx_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in results (list)
_items = []
if self.results:
for _item in self.results:
if _item:
_items.append(_item.to_dict())
for _item_results in self.results:
if _item_results:
_items.append(_item_results.to_dict())
_dict['results'] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
Expand Down
6 changes: 3 additions & 3 deletions overseerr/models/get_search_company2_xx_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in results (list)
_items = []
if self.results:
for _item in self.results:
if _item:
_items.append(_item.to_dict())
for _item_results in self.results:
if _item_results:
_items.append(_item_results.to_dict())
_dict['results'] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
Expand Down
6 changes: 3 additions & 3 deletions overseerr/models/get_search_keyword2_xx_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in results (list)
_items = []
if self.results:
for _item in self.results:
if _item:
_items.append(_item.to_dict())
for _item_results in self.results:
if _item_results:
_items.append(_item_results.to_dict())
_dict['results'] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
Expand Down
6 changes: 3 additions & 3 deletions overseerr/models/get_user2_xx_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in results (list)
_items = []
if self.results:
for _item in self.results:
if _item:
_items.append(_item.to_dict())
for _item_results in self.results:
if _item_results:
_items.append(_item_results.to_dict())
_dict['results'] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
Expand Down
6 changes: 3 additions & 3 deletions overseerr/models/get_user_requests2_xx_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in results (list)
_items = []
if self.results:
for _item in self.results:
if _item:
_items.append(_item.to_dict())
for _item_results in self.results:
if _item_results:
_items.append(_item_results.to_dict())
_dict['results'] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
Expand Down
6 changes: 3 additions & 3 deletions overseerr/models/get_user_watch_data2_xx_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in recently_watched (list)
_items = []
if self.recently_watched:
for _item in self.recently_watched:
if _item:
_items.append(_item.to_dict())
for _item_recently_watched in self.recently_watched:
if _item_recently_watched:
_items.append(_item_recently_watched.to_dict())
_dict['recentlyWatched'] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
Expand Down
6 changes: 3 additions & 3 deletions overseerr/models/get_user_watchlist2_xx_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in results (list)
_items = []
if self.results:
for _item in self.results:
if _item:
_items.append(_item.to_dict())
for _item_results in self.results:
if _item_results:
_items.append(_item_results.to_dict())
_dict['results'] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
Expand Down
6 changes: 3 additions & 3 deletions overseerr/models/issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in comments (list)
_items = []
if self.comments:
for _item in self.comments:
if _item:
_items.append(_item.to_dict())
for _item_comments in self.comments:
if _item_comments:
_items.append(_item_comments.to_dict())
_dict['comments'] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
Expand Down
6 changes: 3 additions & 3 deletions overseerr/models/media_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of each item in requests (list)
_items = []
if self.requests:
for _item in self.requests:
if _item:
_items.append(_item.to_dict())
for _item_requests in self.requests:
if _item_requests:
_items.append(_item_requests.to_dict())
_dict['requests'] = _items
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
Expand Down
Loading

0 comments on commit 4066f4a

Please sign in to comment.