Skip to content

Commit 87f7e15

Browse files
committed
Fix AlbumObject, ChapterObject and EpisodeObject
1 parent f6c7876 commit 87f7e15

File tree

4 files changed

+54
-3
lines changed

4 files changed

+54
-3
lines changed

fixed-spotify-open-api.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6265,7 +6265,8 @@ components:
62656265
- show
62666266
properties:
62676267
show:
6268-
$ref: '#/components/schemas/SimplifiedShowObject'
6268+
allOf:
6269+
- $ref: '#/components/schemas/SimplifiedShowObject'
62696270
description: |
62706271
The show on which the episode belongs.
62716272
SimplifiedEpisodeObject:
@@ -6795,7 +6796,8 @@ components:
67956796
- audiobook
67966797
properties:
67976798
audiobook:
6798-
$ref: '#/components/schemas/SimplifiedAudiobookObject'
6799+
allOf:
6800+
- $ref: '#/components/schemas/SimplifiedAudiobookObject'
67996801
description: |
68006802
The audiobook for which the chapter belongs.
68016803
SimplifiedChapterObject:
@@ -6950,7 +6952,8 @@ components:
69506952
description: |
69516953
The artists of the album. Each artist object includes a link in `href` to more detailed information about the artist.
69526954
tracks:
6953-
$ref: '#/components/schemas/PagingSimplifiedTrackObject'
6955+
allOf:
6956+
- $ref: '#/components/schemas/PagingSimplifiedTrackObject'
69546957
description: |
69556958
The tracks of the album.
69566959
popularity:
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
description: fix tracks property of AlbumObject
2+
operations:
3+
# popularity
4+
- op: test
5+
path: "$.components.schemas.AlbumObject.allOf[1].properties.tracks"
6+
value:
7+
$ref: '#/components/schemas/PagingSimplifiedTrackObject'
8+
description: |
9+
The tracks of the album.
10+
- op: set
11+
path: "$.components.schemas.AlbumObject.allOf[1].properties.tracks"
12+
value:
13+
allOf:
14+
- $ref: '#/components/schemas/PagingSimplifiedTrackObject'
15+
description: |
16+
The tracks of the album.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
description: fix audiobook property of ChapterObject
2+
operations:
3+
# popularity
4+
- op: test
5+
path: "$.components.schemas.ChapterObject.allOf[1].properties.audiobook"
6+
value:
7+
$ref: '#/components/schemas/SimplifiedAudiobookObject'
8+
description: |
9+
The audiobook for which the chapter belongs.
10+
- op: set
11+
path: "$.components.schemas.ChapterObject.allOf[1].properties.audiobook"
12+
value:
13+
allOf:
14+
- $ref: '#/components/schemas/SimplifiedAudiobookObject'
15+
description: |
16+
The audiobook for which the chapter belongs.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
description: fix show property of EpisodeObject
2+
operations:
3+
# popularity
4+
- op: test
5+
path: "$.components.schemas.EpisodeObject.allOf[1].properties.show"
6+
value:
7+
$ref: '#/components/schemas/SimplifiedShowObject'
8+
description: |
9+
The show on which the episode belongs.
10+
- op: set
11+
path: "$.components.schemas.EpisodeObject.allOf[1].properties.show"
12+
value:
13+
allOf:
14+
- $ref: '#/components/schemas/SimplifiedShowObject'
15+
description: |
16+
The show on which the episode belongs.

0 commit comments

Comments
 (0)