From 3c0f23e3f2f69d998395780b2f01f3ae1bd20c3b Mon Sep 17 00:00:00 2001 From: Deluan Date: Sun, 14 May 2023 10:23:06 -0400 Subject: [PATCH] Fix spec paths --- api/paths/album.yml | 10 +++++----- api/paths/albums.yml | 36 ++++++++++++++++++------------------ api/paths/artist.yml | 10 +++++----- api/paths/artists.yml | 36 ++++++++++++++++++------------------ api/paths/server.yml | 6 +++--- api/paths/track.yml | 10 +++++----- api/paths/tracks.yml | 36 ++++++++++++++++++------------------ api/spec.yml | 4 ++-- 8 files changed, 74 insertions(+), 74 deletions(-) diff --git a/api/paths/album.yml b/api/paths/album.yml index 5cfcd4442..7dfb7b953 100644 --- a/api/paths/album.yml +++ b/api/paths/album.yml @@ -2,7 +2,7 @@ get: summary: Retrieve an individual album operationId: getAlbum parameters: - - $ref: '#/components/parameters/include' + - $ref: '../spec.yml#/components/parameters/include' - name: albumId in: path description: The unique identifier of the album @@ -19,10 +19,10 @@ get: required: [data] properties: data: - $ref: '#/components/schemas/Album' + $ref: '../spec.yml#/components/schemas/Album' '403': - $ref: '#/components/responses/NotAuthorized' + $ref: '../spec.yml#/components/responses/NotAuthorized' '404': - $ref: '#/components/responses/NotFound' + $ref: '../spec.yml#/components/responses/NotFound' '500': - $ref: '#/components/responses/InternalServerError' + $ref: '../spec.yml#/components/responses/InternalServerError' diff --git a/api/paths/albums.yml b/api/paths/albums.yml index 1df2835ff..7e95ce18a 100644 --- a/api/paths/albums.yml +++ b/api/paths/albums.yml @@ -2,18 +2,18 @@ get: summary: Retrieve a list of albums operationId: getAlbums parameters: - - $ref: '#/components/parameters/pageLimit' - - $ref: '#/components/parameters/pageOffset' - - $ref: '#/components/parameters/filterEquals' - - $ref: '#/components/parameters/filterContains' - - $ref: '#/components/parameters/filterLessThan' - - $ref: '#/components/parameters/filterLessOrEqual' - - $ref: '#/components/parameters/filterGreaterThan' - - $ref: '#/components/parameters/filterGreaterOrEqual' - - $ref: '#/components/parameters/filterStartsWith' - - $ref: '#/components/parameters/filterEndsWith' - - $ref: '#/components/parameters/sort' - - $ref: '#/components/parameters/include' + - $ref: '../spec.yml#/components/parameters/pageLimit' + - $ref: '../spec.yml#/components/parameters/pageOffset' + - $ref: '../spec.yml#/components/parameters/filterEquals' + - $ref: '../spec.yml#/components/parameters/filterContains' + - $ref: '../spec.yml#/components/parameters/filterLessThan' + - $ref: '../spec.yml#/components/parameters/filterLessOrEqual' + - $ref: '../spec.yml#/components/parameters/filterGreaterThan' + - $ref: '../spec.yml#/components/parameters/filterGreaterOrEqual' + - $ref: '../spec.yml#/components/parameters/filterStartsWith' + - $ref: '../spec.yml#/components/parameters/filterEndsWith' + - $ref: '../spec.yml#/components/parameters/sort' + - $ref: '../spec.yml#/components/parameters/include' responses: '200': description: A list of albums @@ -26,14 +26,14 @@ get: data: type: array items: - $ref: '#/components/schemas/Album' + $ref: '../spec.yml#/components/schemas/Album' links: - $ref: '#/components/schemas/PaginationLinks' + $ref: '../spec.yml#/components/schemas/PaginationLinks' meta: - $ref: '#/components/schemas/PaginationMeta' + $ref: '../spec.yml#/components/schemas/PaginationMeta' '400': - $ref: '#/components/responses/BadRequest' + $ref: '../spec.yml#/components/responses/BadRequest' '403': - $ref: '#/components/responses/NotAuthorized' + $ref: '../spec.yml#/components/responses/NotAuthorized' '500': - $ref: '#/components/responses/InternalServerError' + $ref: '../spec.yml#/components/responses/InternalServerError' diff --git a/api/paths/artist.yml b/api/paths/artist.yml index 6bd34f11c..7bf4ed8eb 100644 --- a/api/paths/artist.yml +++ b/api/paths/artist.yml @@ -2,7 +2,7 @@ get: summary: Retrieve an individual artist operationId: getArtist parameters: - - $ref: '#/components/parameters/include' + - $ref: '../spec.yml#/components/parameters/include' - name: artistId in: path description: The unique identifier of the artist @@ -19,10 +19,10 @@ get: required: [data] properties: data: - $ref: '#/components/schemas/Artist' + $ref: '../spec.yml#/components/schemas/Artist' '403': - $ref: '#/components/responses/NotAuthorized' + $ref: '../spec.yml#/components/responses/NotAuthorized' '404': - $ref: '#/components/responses/NotFound' + $ref: '../spec.yml#/components/responses/NotFound' '500': - $ref: '#/components/responses/InternalServerError' + $ref: '../spec.yml#/components/responses/InternalServerError' diff --git a/api/paths/artists.yml b/api/paths/artists.yml index 9476ff20c..17f32feb0 100644 --- a/api/paths/artists.yml +++ b/api/paths/artists.yml @@ -2,18 +2,18 @@ get: summary: Retrieve a list of artists operationId: getArtists parameters: - - $ref: '#/components/parameters/pageLimit' - - $ref: '#/components/parameters/pageOffset' - - $ref: '#/components/parameters/filterEquals' - - $ref: '#/components/parameters/filterContains' - - $ref: '#/components/parameters/filterLessThan' - - $ref: '#/components/parameters/filterLessOrEqual' - - $ref: '#/components/parameters/filterGreaterThan' - - $ref: '#/components/parameters/filterGreaterOrEqual' - - $ref: '#/components/parameters/filterStartsWith' - - $ref: '#/components/parameters/filterEndsWith' - - $ref: '#/components/parameters/sort' - - $ref: '#/components/parameters/include' + - $ref: '../spec.yml#/components/parameters/pageLimit' + - $ref: '../spec.yml#/components/parameters/pageOffset' + - $ref: '../spec.yml#/components/parameters/filterEquals' + - $ref: '../spec.yml#/components/parameters/filterContains' + - $ref: '../spec.yml#/components/parameters/filterLessThan' + - $ref: '../spec.yml#/components/parameters/filterLessOrEqual' + - $ref: '../spec.yml#/components/parameters/filterGreaterThan' + - $ref: '../spec.yml#/components/parameters/filterGreaterOrEqual' + - $ref: '../spec.yml#/components/parameters/filterStartsWith' + - $ref: '../spec.yml#/components/parameters/filterEndsWith' + - $ref: '../spec.yml#/components/parameters/sort' + - $ref: '../spec.yml#/components/parameters/include' responses: '200': description: A list of artists @@ -26,14 +26,14 @@ get: data: type: array items: - $ref: '#/components/schemas/Artist' + $ref: '../spec.yml#/components/schemas/Artist' links: - $ref: '#/components/schemas/PaginationLinks' + $ref: '../spec.yml#/components/schemas/PaginationLinks' meta: - $ref: '#/components/schemas/PaginationMeta' + $ref: '../spec.yml#/components/schemas/PaginationMeta' '400': - $ref: '#/components/responses/BadRequest' + $ref: '../spec.yml#/components/responses/BadRequest' '403': - $ref: '#/components/responses/NotAuthorized' + $ref: '../spec.yml#/components/responses/NotAuthorized' '500': - $ref: '#/components/responses/InternalServerError' + $ref: '../spec.yml#/components/responses/InternalServerError' diff --git a/api/paths/server.yml b/api/paths/server.yml index 05a292aa6..eeb8c79ba 100644 --- a/api/paths/server.yml +++ b/api/paths/server.yml @@ -11,8 +11,8 @@ get: required: [data] properties: data: - $ref: '#/components/schemas/ServerInfo' + $ref: '../spec.yml#/components/schemas/ServerInfo' '403': - $ref: '#/components/responses/NotAuthorized' + $ref: '../spec.yml#/components/responses/NotAuthorized' '500': - $ref: '#/components/responses/InternalServerError' + $ref: '../spec.yml#/components/responses/InternalServerError' diff --git a/api/paths/track.yml b/api/paths/track.yml index 1b1e8e20f..a7c4c8a14 100644 --- a/api/paths/track.yml +++ b/api/paths/track.yml @@ -2,7 +2,7 @@ get: summary: Retrieve an individual track operationId: getTrack parameters: - - $ref: '#/components/parameters/include' + - $ref: '../spec.yml#/components/parameters/include' - name: trackId in: path description: The unique identifier of the track @@ -19,10 +19,10 @@ get: required: [data] properties: data: - $ref: '#/components/schemas/Track' + $ref: '../spec.yml#/components/schemas/Track' '403': - $ref: '#/components/responses/NotAuthorized' + $ref: '../spec.yml#/components/responses/NotAuthorized' '404': - $ref: '#/components/responses/NotFound' + $ref: '../spec.yml#/components/responses/NotFound' '500': - $ref: '#/components/responses/InternalServerError' + $ref: '../spec.yml#/components/responses/InternalServerError' diff --git a/api/paths/tracks.yml b/api/paths/tracks.yml index 0dba01735..3a2a11fc8 100644 --- a/api/paths/tracks.yml +++ b/api/paths/tracks.yml @@ -2,18 +2,18 @@ get: summary: Get a list of tracks operationId: getTracks parameters: - - $ref: '#/components/parameters/pageLimit' - - $ref: '#/components/parameters/pageOffset' - - $ref: '#/components/parameters/filterEquals' - - $ref: '#/components/parameters/filterContains' - - $ref: '#/components/parameters/filterLessThan' - - $ref: '#/components/parameters/filterLessOrEqual' - - $ref: '#/components/parameters/filterGreaterThan' - - $ref: '#/components/parameters/filterGreaterOrEqual' - - $ref: '#/components/parameters/filterStartsWith' - - $ref: '#/components/parameters/filterEndsWith' - - $ref: '#/components/parameters/sort' - - $ref: '#/components/parameters/include' + - $ref: '../spec.yml#/components/parameters/pageLimit' + - $ref: '../spec.yml#/components/parameters/pageOffset' + - $ref: '../spec.yml#/components/parameters/filterEquals' + - $ref: '../spec.yml#/components/parameters/filterContains' + - $ref: '../spec.yml#/components/parameters/filterLessThan' + - $ref: '../spec.yml#/components/parameters/filterLessOrEqual' + - $ref: '../spec.yml#/components/parameters/filterGreaterThan' + - $ref: '../spec.yml#/components/parameters/filterGreaterOrEqual' + - $ref: '../spec.yml#/components/parameters/filterStartsWith' + - $ref: '../spec.yml#/components/parameters/filterEndsWith' + - $ref: '../spec.yml#/components/parameters/sort' + - $ref: '../spec.yml#/components/parameters/include' responses: '200': description: A list of tracks @@ -26,14 +26,14 @@ get: data: type: array items: - $ref: '#/components/schemas/Track' + $ref: '../spec.yml#/components/schemas/Track' links: - $ref: '#/components/schemas/PaginationLinks' + $ref: '../spec.yml#/components/schemas/PaginationLinks' meta: - $ref: '#/components/schemas/PaginationMeta' + $ref: '../spec.yml#/components/schemas/PaginationMeta' '400': - $ref: '#/components/responses/BadRequest' + $ref: '../spec.yml#/components/responses/BadRequest' '403': - $ref: '#/components/responses/NotAuthorized' + $ref: '../spec.yml#/components/responses/NotAuthorized' '500': - $ref: '#/components/responses/InternalServerError' + $ref: '../spec.yml#/components/responses/InternalServerError' diff --git a/api/spec.yml b/api/spec.yml index 10f5ee789..fa8f3c6f7 100644 --- a/api/spec.yml +++ b/api/spec.yml @@ -300,7 +300,7 @@ components: type: object properties: meta: - $ref: #/components/schemas/ArtistMetaObject + $ref: '#/components/schemas/ArtistMetaObject' data: $ref: '#/components/schemas/ResourceObject' required: @@ -423,7 +423,7 @@ components: type: object properties: meta: - $ref: #/components/schemas/ArtistMetaObject + $ref: '#/components/schemas/ArtistMetaObject' data: $ref: '#/components/schemas/ResourceObject' required: