From 72187044628ff8d964394c3bd8a9531386293654 Mon Sep 17 00:00:00 2001 From: sonallux Date: Wed, 30 Aug 2023 21:34:48 +0200 Subject: [PATCH] Remove obsolete patches --- .../patches/schema-AlbumBaseObject.yml | 55 ----------------- .../patches/schema-AlbumObject-artists.yml | 8 --- .../resources/patches/schema-AlbumObject.yml | 60 ------------------- 3 files changed, 123 deletions(-) delete mode 100644 spotify-web-api-open-api/src/main/resources/patches/schema-AlbumBaseObject.yml delete mode 100644 spotify-web-api-open-api/src/main/resources/patches/schema-AlbumObject-artists.yml delete mode 100644 spotify-web-api-open-api/src/main/resources/patches/schema-AlbumObject.yml diff --git a/spotify-web-api-open-api/src/main/resources/patches/schema-AlbumBaseObject.yml b/spotify-web-api-open-api/src/main/resources/patches/schema-AlbumBaseObject.yml deleted file mode 100644 index 7f77b878..00000000 --- a/spotify-web-api-open-api/src/main/resources/patches/schema-AlbumBaseObject.yml +++ /dev/null @@ -1,55 +0,0 @@ -description: removing obsolete properties -operations: - # copyrights - - op: test - path: "$.components.schemas.AlbumBase.properties.copyrights" - value: - type: array - items: - $ref: '#/components/schemas/CopyrightObject' - description: | - The copyright statements of the album. - - op: delete - path: "$.components.schemas.AlbumBase.properties.copyrights" - # external_ids - - op: test - path: "$.components.schemas.AlbumBase.properties.external_ids" - value: - allOf: - - $ref: '#/components/schemas/ExternalIdObject' - description: | - Known external IDs for the album. - - op: delete - path: "$.components.schemas.AlbumBase.properties.external_ids" - # genres - - op: test - path: "$.components.schemas.AlbumBase.properties.genres" - value: - type: array - items: - type: string - example: - - Egg punk - - Noise rock - description: | - A list of the genres the album is associated with. If not yet classified, the array is empty. - - op: delete - path: "$.components.schemas.AlbumBase.properties.genres" - # label - - op: test - path: "$.components.schemas.AlbumBase.properties.label" - value: - type: string - description: | - The label associated with the album. - - op: delete - path: "$.components.schemas.AlbumBase.properties.label" - # popularity - - op: test - path: "$.components.schemas.AlbumBase.properties.popularity" - value: - type: integer - description: | - The popularity of the album. The value will be between 0 and 100, with 100 being the most popular. - - op: delete - path: "$.components.schemas.AlbumBase.properties.popularity" diff --git a/spotify-web-api-open-api/src/main/resources/patches/schema-AlbumObject-artists.yml b/spotify-web-api-open-api/src/main/resources/patches/schema-AlbumObject-artists.yml deleted file mode 100644 index 48b4145a..00000000 --- a/spotify-web-api-open-api/src/main/resources/patches/schema-AlbumObject-artists.yml +++ /dev/null @@ -1,8 +0,0 @@ -description: Fix type of artists property to SimplifiedArtistObject -operations: - - op: test - path: "$.components.schemas.AlbumObject.allOf[1].properties.artists.items.$ref" - value: '#/components/schemas/ArtistObject' - - op: set - path: "$.components.schemas.AlbumObject.allOf[1].properties.artists.items.$ref" - value: '#/components/schemas/SimplifiedArtistObject' diff --git a/spotify-web-api-open-api/src/main/resources/patches/schema-AlbumObject.yml b/spotify-web-api-open-api/src/main/resources/patches/schema-AlbumObject.yml deleted file mode 100644 index 31cd4207..00000000 --- a/spotify-web-api-open-api/src/main/resources/patches/schema-AlbumObject.yml +++ /dev/null @@ -1,60 +0,0 @@ -description: add missing properties to AlbumObject -operations: - # popularity - - op: test - path: "$.components.schemas.AlbumObject.allOf[1].properties.popularity" - value: null - - op: put - path: "$.components.schemas.AlbumObject.allOf[1].properties" - key: popularity - value: - type: integer - description: "The popularity of the album, with 100 being the most popular.\ - \ The popularity is calculated from the popularity of the album's individual\ - \ tracks." - # label - - op: test - path: "$.components.schemas.AlbumObject.allOf[1].properties.label" - value: null - - op: put - path: "$.components.schemas.AlbumObject.allOf[1].properties" - key: label - value: - type: string - description: The label for the album. - # external_ids - - op: test - path: "$.components.schemas.AlbumObject.allOf[1].properties.external_ids" - value: null - - op: put - path: "$.components.schemas.AlbumObject.allOf[1].properties" - key: external_ids - value: - allOf: - - $ref: '#/components/schemas/ExternalIdObject' - description: | - Known external IDs for the album. - # genres - - op: test - path: "$.components.schemas.AlbumObject.allOf[1].properties.genres" - value: null - - op: put - path: "$.components.schemas.AlbumObject.allOf[1].properties" - key: genres - value: - type: array - description: "A list of the genres used to classify the album. (If not yet classified, the array is empty.)" - items: - type: string - # copyrights - - op: test - path: "$.components.schemas.AlbumObject.allOf[1].properties.copyrights" - value: null - - op: put - path: "$.components.schemas.AlbumObject.allOf[1].properties" - key: copyrights - value: - type: array - items: - $ref: '#/components/schemas/CopyrightObject' - description: The copyright statements of the album.