From 00b3343fc5629bb4b3ea8a31282a0c7b13b277c4 Mon Sep 17 00:00:00 2001 From: Luke Hagar Date: Thu, 16 Nov 2023 10:57:22 -0600 Subject: [PATCH] Swapped enum numbers to ints --- plextv/paths/resources.yaml | 6 +++--- pms/paths/all-playlists.yaml | 2 +- pms/paths/hubs-section.yaml | 2 +- pms/paths/hubs.yaml | 2 +- pms/paths/library.yaml | 2 +- pms/paths/log.yaml | 2 +- pms/paths/photo-transcode.yaml | 4 ++-- pms/paths/playlist-upload.yaml | 2 +- pms/paths/playlists.yaml | 2 +- pms/paths/updater-apply.yaml | 2 ++ pms/paths/updater-check.yaml | 1 + 11 files changed, 15 insertions(+), 12 deletions(-) diff --git a/plextv/paths/resources.yaml b/plextv/paths/resources.yaml index 0395432a..a9cee580 100644 --- a/plextv/paths/resources.yaml +++ b/plextv/paths/resources.yaml @@ -9,7 +9,7 @@ get: description: Include Https entries in the results in: query schema: - type: number + type: integer enum: - 0 - 1 @@ -17,7 +17,7 @@ get: description: Include Relay addresses in the results in: query schema: - type: number + type: integer enum: - 0 - 1 @@ -25,7 +25,7 @@ get: description: Include IPv6 entries in the results in: query schema: - type: number + type: integer enum: - 0 - 1 diff --git a/pms/paths/all-playlists.yaml b/pms/paths/all-playlists.yaml index 6d5e6eba..3c86f572 100644 --- a/pms/paths/all-playlists.yaml +++ b/pms/paths/all-playlists.yaml @@ -19,7 +19,7 @@ get: description: type of playlists to return (default is all). in: query schema: - type: number + type: integer enum: - 0 - 1 diff --git a/pms/paths/hubs-section.yaml b/pms/paths/hubs-section.yaml index b114ea8d..6e00c92d 100644 --- a/pms/paths/hubs-section.yaml +++ b/pms/paths/hubs-section.yaml @@ -22,7 +22,7 @@ get: description: Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). in: query schema: - type: number + type: integer enum: - 0 - 1 diff --git a/pms/paths/hubs.yaml b/pms/paths/hubs.yaml index dd5aad11..5da8d79e 100644 --- a/pms/paths/hubs.yaml +++ b/pms/paths/hubs.yaml @@ -15,7 +15,7 @@ get: description: Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). in: query schema: - type: number + type: integer enum: - 0 - 1 diff --git a/pms/paths/library.yaml b/pms/paths/library.yaml index ced14ae5..acf6c647 100644 --- a/pms/paths/library.yaml +++ b/pms/paths/library.yaml @@ -37,7 +37,7 @@ get: Only exists for backwards compatibility, media providers other than the server libraries have it on always. in: query schema: - type: number + type: integer enum: - 0 - 1 diff --git a/pms/paths/log.yaml b/pms/paths/log.yaml index 49eedfaf..5b9fbc6a 100644 --- a/pms/paths/log.yaml +++ b/pms/paths/log.yaml @@ -16,7 +16,7 @@ get: 4: Verbose in: query schema: - type: number + type: integer enum: - 0 - 1 diff --git a/pms/paths/photo-transcode.yaml b/pms/paths/photo-transcode.yaml index cc277667..8b9ee943 100644 --- a/pms/paths/photo-transcode.yaml +++ b/pms/paths/photo-transcode.yaml @@ -43,7 +43,7 @@ get: description: images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against. in: query schema: - type: number + type: integer enum: - 0 - 1 @@ -52,7 +52,7 @@ get: description: allow images to be resized beyond native dimensions. in: query schema: - type: number + type: integer enum: - 0 - 1 diff --git a/pms/paths/playlist-upload.yaml b/pms/paths/playlist-upload.yaml index 8aa33afd..31d8dc80 100644 --- a/pms/paths/playlist-upload.yaml +++ b/pms/paths/playlist-upload.yaml @@ -25,7 +25,7 @@ post: The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. in: query schema: - type: number + type: integer enum: - 0 - 1 diff --git a/pms/paths/playlists.yaml b/pms/paths/playlists.yaml index 75f97cb5..1e86e7bb 100644 --- a/pms/paths/playlists.yaml +++ b/pms/paths/playlists.yaml @@ -28,7 +28,7 @@ post: description: whether the playlist is smart or not in: query schema: - type: number + type: integer enum: - 0 - 1 diff --git a/pms/paths/updater-apply.yaml b/pms/paths/updater-apply.yaml index a73a7dee..b97f48f6 100644 --- a/pms/paths/updater-apply.yaml +++ b/pms/paths/updater-apply.yaml @@ -11,6 +11,7 @@ put: required: false in: query schema: + type: integer enum: - 0 - 1 @@ -20,6 +21,7 @@ put: required: false in: query schema: + type: integer enum: - 0 - 1 diff --git a/pms/paths/updater-check.yaml b/pms/paths/updater-check.yaml index 359657ad..ce789075 100644 --- a/pms/paths/updater-check.yaml +++ b/pms/paths/updater-check.yaml @@ -10,6 +10,7 @@ put: required: false in: query schema: + type: integer enum: - 0 - 1