Skip to content

Commit f6c7876

Browse files
committed
Fix AlbumBase object
1 parent b4e350d commit f6c7876

File tree

2 files changed

+55
-28
lines changed

2 files changed

+55
-28
lines changed

fixed-spotify-open-api.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6761,34 +6761,6 @@ components:
67616761
example: spotify:album:2up3OPMp9Tb4dAKM2erWXQ
67626762
description: |
67636763
The [Spotify URI](/documentation/web-api/#spotify-uris-and-ids) for the album.
6764-
copyrights:
6765-
type: array
6766-
items:
6767-
$ref: '#/components/schemas/CopyrightObject'
6768-
description: |
6769-
The copyright statements of the album.
6770-
external_ids:
6771-
allOf:
6772-
- $ref: '#/components/schemas/ExternalIdObject'
6773-
description: |
6774-
Known external IDs for the album.
6775-
genres:
6776-
type: array
6777-
items:
6778-
type: string
6779-
example:
6780-
- Egg punk
6781-
- Noise rock
6782-
description: |
6783-
A list of the genres the album is associated with. If not yet classified, the array is empty.
6784-
label:
6785-
type: string
6786-
description: |
6787-
The label associated with the album.
6788-
popularity:
6789-
type: integer
6790-
description: |
6791-
The popularity of the album. The value will be between 0 and 100, with 100 being the most popular.
67926764
SimplifiedAlbumObject:
67936765
x-spotify-docs-type: SimplifiedAlbumObject
67946766
allOf:
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
description: removing obsolete properties
2+
operations:
3+
# copyrights
4+
- op: test
5+
path: "$.components.schemas.AlbumBase.properties.copyrights"
6+
value:
7+
type: array
8+
items:
9+
$ref: '#/components/schemas/CopyrightObject'
10+
description: |
11+
The copyright statements of the album.
12+
- op: delete
13+
path: "$.components.schemas.AlbumBase.properties.copyrights"
14+
# external_ids
15+
- op: test
16+
path: "$.components.schemas.AlbumBase.properties.external_ids"
17+
value:
18+
allOf:
19+
- $ref: '#/components/schemas/ExternalIdObject'
20+
description: |
21+
Known external IDs for the album.
22+
- op: delete
23+
path: "$.components.schemas.AlbumBase.properties.external_ids"
24+
# genres
25+
- op: test
26+
path: "$.components.schemas.AlbumBase.properties.genres"
27+
value:
28+
type: array
29+
items:
30+
type: string
31+
example:
32+
- Egg punk
33+
- Noise rock
34+
description: |
35+
A list of the genres the album is associated with. If not yet classified, the array is empty.
36+
- op: delete
37+
path: "$.components.schemas.AlbumBase.properties.genres"
38+
# label
39+
- op: test
40+
path: "$.components.schemas.AlbumBase.properties.label"
41+
value:
42+
type: string
43+
description: |
44+
The label associated with the album.
45+
- op: delete
46+
path: "$.components.schemas.AlbumBase.properties.label"
47+
# popularity
48+
- op: test
49+
path: "$.components.schemas.AlbumBase.properties.popularity"
50+
value:
51+
type: integer
52+
description: |
53+
The popularity of the album. The value will be between 0 and 100, with 100 being the most popular.
54+
- op: delete
55+
path: "$.components.schemas.AlbumBase.properties.popularity"

0 commit comments

Comments
 (0)