Skip to content

Commit 84c477b

Browse files
committed
Fix OneCurrentlyPlayingTrack response
1 parent 56d20a0 commit 84c477b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

fixed-spotify-open-api.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3972,7 +3972,7 @@ components:
39723972
content:
39733973
application/json:
39743974
schema:
3975-
$ref: '#/components/schemas/CurrentlyPlayingContextObject'
3975+
$ref: '#/components/schemas/CurrentlyPlayingObject'
39763976
PlaylistSnapshotId:
39773977
description: A snapshot ID for the playlist
39783978
content:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
description: Fix type of OneCurrentlyPlayingTrack response
2+
operations:
3+
- op: test
4+
path: "$.components.responses.OneCurrentlyPlayingTrack.content.application/json.schema.$ref"
5+
value: "#/components/schemas/CurrentlyPlayingContextObject"
6+
- op: set
7+
path: "$.components.responses.OneCurrentlyPlayingTrack.content.application/json.schema.$ref"
8+
value: "#/components/schemas/CurrentlyPlayingObject"

0 commit comments

Comments
 (0)