From cf52ea291f83689c34be981ecaf849b74e4e1e91 Mon Sep 17 00:00:00 2001 From: JasonLandbridge Date: Fri, 27 Sep 2024 18:28:51 +0200 Subject: [PATCH 1/2] revert removal of enum, this has been resolved in C# SDK --- src/models/PlexDevice.yaml | 4 +++- src/models/UserPlexAccount.yaml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/models/PlexDevice.yaml b/src/models/PlexDevice.yaml index 0eb72917..526f7cc8 100644 --- a/src/models/PlexDevice.yaml +++ b/src/models/PlexDevice.yaml @@ -101,10 +101,12 @@ properties: - IPv6 properties: protocol: - # TODO - This should be an enum but there is a bug in the generator description: The protocol used for the connection (http, https, etc) example: "http" type: string + enum: + - http + - https address: description: The (ip) address or domain name used for the connection type: string diff --git a/src/models/UserPlexAccount.yaml b/src/models/UserPlexAccount.yaml index ea92f55b..64ae7f4b 100644 --- a/src/models/UserPlexAccount.yaml +++ b/src/models/UserPlexAccount.yaml @@ -232,10 +232,12 @@ properties: description: If you are subscribed to the Plex newsletter default: false mailingListStatus: - # TODO - This should be an enum but there is a bug in the generator description: Your current mailing list status (active or unsubscribed) type: string example: subscribed + enum: + - active + - unsubscribed maxHomeSize: type: integer description: The maximum number of accounts allowed in the Plex Home From 4e827954fa0b730cf364e9b710cf5edba70342b5 Mon Sep 17 00:00:00 2001 From: JasonLandbridge Date: Fri, 27 Sep 2024 19:05:10 +0200 Subject: [PATCH 2/2] revert removal of enum, this has been resolved in C# SDK --- src/models/UserPlexAccount.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/UserPlexAccount.yaml b/src/models/UserPlexAccount.yaml index 64ae7f4b..3a54cdca 100644 --- a/src/models/UserPlexAccount.yaml +++ b/src/models/UserPlexAccount.yaml @@ -234,7 +234,7 @@ properties: mailingListStatus: description: Your current mailing list status (active or unsubscribed) type: string - example: subscribed + example: active enum: - active - unsubscribed