Skip to content

Commit

Permalink
fix(#5): httpuri to string
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuochi committed Mar 20, 2023
1 parent 2091423 commit 4042f23
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 130 deletions.
2 changes: 1 addition & 1 deletion docs/HealthResource.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Name | Type | Description | Notes
**source** | **str** | | [optional]
**type** | [**HealthCheckResult**](HealthCheckResult.md) | | [optional]
**message** | **str** | | [optional]
**wiki_url** | [**HttpUri**](HttpUri.md) | | [optional]
**wiki_url** | **str** | | [optional]

## Example

Expand Down
1 change: 0 additions & 1 deletion sonarr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@
from sonarr.models.history_resource import HistoryResource
from sonarr.models.history_resource_paging_resource import HistoryResourcePagingResource
from sonarr.models.host_config_resource import HostConfigResource
from sonarr.models.http_uri import HttpUri
from sonarr.models.import_list_exclusion_resource import ImportListExclusionResource
from sonarr.models.import_list_resource import ImportListResource
from sonarr.models.import_list_type import ImportListType
Expand Down
1 change: 0 additions & 1 deletion sonarr/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
from sonarr.models.history_resource import HistoryResource
from sonarr.models.history_resource_paging_resource import HistoryResourcePagingResource
from sonarr.models.host_config_resource import HostConfigResource
from sonarr.models.http_uri import HttpUri
from sonarr.models.import_list_exclusion_resource import ImportListExclusionResource
from sonarr.models.import_list_resource import ImportListResource
from sonarr.models.import_list_type import ImportListType
Expand Down
8 changes: 2 additions & 6 deletions sonarr/models/health_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from typing import Optional
from pydantic import BaseModel
from sonarr.models.health_check_result import HealthCheckResult
from sonarr.models.http_uri import HttpUri

class HealthResource(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Expand All @@ -32,7 +31,7 @@ class HealthResource(BaseModel):
source: Optional[str]
type: Optional[HealthCheckResult]
message: Optional[str]
wiki_url: Optional[HttpUri]
wiki_url: Optional[str]
__properties = ["id", "source", "type", "message", "wikiUrl"]

class Config:
Expand Down Expand Up @@ -62,9 +61,6 @@ def to_dict(self):
exclude={
},
exclude_none=True)
# override the default output from pydantic by calling `to_dict()` of wiki_url
if self.wiki_url:
_dict['wikiUrl'] = self.wiki_url.to_dict()
# set to None if source (nullable) is None
if self.source is None:
_dict['source'] = None
Expand All @@ -89,7 +85,7 @@ def from_dict(cls, obj: dict) -> HealthResource:
"source": obj.get("source"),
"type": obj.get("type"),
"message": obj.get("message"),
"wiki_url": HttpUri.from_dict(obj.get("wikiUrl")) if obj.get("wikiUrl") is not None else None
"wiki_url": obj.get("wikiUrl")
})
return _obj

121 changes: 0 additions & 121 deletions sonarr/models/http_uri.py

This file was deleted.

0 comments on commit 4042f23

Please sign in to comment.