Skip to content

Commit a3696ee

Browse files
committed
Fix response type of endpoint-reorder-or-replace-playlists-tracks
Fix #80
1 parent 4fbbfa9 commit a3696ee

File tree

8 files changed

+17
-13
lines changed

8 files changed

+17
-13
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>de.sonallux.spotify</groupId>
88
<artifactId>spotify-web-api-parent</artifactId>
9-
<version>2021.6.4</version>
9+
<version>2021.6.17</version>
1010
<packaging>pom</packaging>
1111

1212
<name>spotify-web-api-parent</name>

spotify-web-api-core/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
<parent>
88
<groupId>de.sonallux.spotify</groupId>
99
<artifactId>spotify-web-api-parent</artifactId>
10-
<version>2021.6.4</version>
10+
<version>2021.6.17</version>
1111
<relativePath>../pom.xml</relativePath>
1212
</parent>
1313

1414
<artifactId>spotify-web-api-core</artifactId>
15-
<version>2021.6.4</version>
15+
<version>2021.6.17</version>
1616
<packaging>jar</packaging>
1717

1818
<name>spotify-web-api-core</name>

spotify-web-api-core/src/main/java/de/sonallux/spotify/core/EndpointSplitter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public static void splitReorderOrReplacePlaylistsTracksEndpoint(SpotifyWebApi ap
130130
replaceResponseDescription + "\n\n" + errorResponseDescription,
131131
endpoint.getScopes(),
132132
endpoint.getNotes(),
133-
List.of(new SpotifyWebApiEndpoint.ResponseType("Void", 201, null))
133+
List.of(new SpotifyWebApiEndpoint.ResponseType("SnapshotIdObject", 201, null))
134134
);
135135

136136
category.getEndpoints().remove(endpoint.getId());

spotify-web-api-core/src/main/resources/spotify-web-api.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5330,7 +5330,7 @@ categories:
53305330
responseTypes:
53315331
- type: SnapshotIdObject
53325332
status: 200
5333-
- type: Void
5333+
- type: SnapshotIdObject
53345334
status: 201
53355335
endpoint-upload-custom-playlist-cover:
53365336
id: endpoint-upload-custom-playlist-cover

spotify-web-api-generator-open-api/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
<parent>
88
<groupId>de.sonallux.spotify</groupId>
99
<artifactId>spotify-web-api-parent</artifactId>
10-
<version>2021.6.4</version>
10+
<version>2021.6.17</version>
1111
<relativePath>../pom.xml</relativePath>
1212
</parent>
1313

1414
<artifactId>spotify-web-api-generator-open-api</artifactId>
15-
<version>2021.6.4</version>
15+
<version>2021.6.17</version>
1616
<packaging>jar</packaging>
1717

1818
<name>spotify-web-api-generator-open-api</name>
@@ -29,7 +29,7 @@
2929
<dependency>
3030
<groupId>de.sonallux.spotify</groupId>
3131
<artifactId>spotify-web-api-core</artifactId>
32-
<version>2021.6.4</version>
32+
<version>2021.6.17</version>
3333
</dependency>
3434
<dependency>
3535
<groupId>io.swagger.core.v3</groupId>

spotify-web-api-generator-open-api/spotify-web-api-openapi.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ info:
44
contact:
55
name: sonallux
66
url: https://github.com/sonallux/spotify-web-api
7-
version: 2021.6.4
7+
version: 2021.6.17
88
externalDocs:
99
description: Find more info on the official Spotify Web API Reference
1010
url: https://developer.spotify.com/documentation/web-api/reference
@@ -4118,6 +4118,10 @@ paths:
41184118
the response body contains an [error object](https://developer.spotify.com/documentation/web-api/#response-schema),
41194119
and the existing playlist is unmodified.
41204120
Trying to set an item when you do not have the user's authorization returns error `403` Forbidden.
4121+
content:
4122+
application/json:
4123+
schema:
4124+
$ref: '#/components/schemas/SnapshotIdObject'
41214125
security:
41224126
- spotify_auth:
41234127
- playlist-modify-public

spotify-web-api-parser/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
<parent>
88
<groupId>de.sonallux.spotify</groupId>
99
<artifactId>spotify-web-api-parent</artifactId>
10-
<version>2021.6.4</version>
10+
<version>2021.6.17</version>
1111
<relativePath>../pom.xml</relativePath>
1212
</parent>
1313

1414
<artifactId>spotify-web-api-parser</artifactId>
15-
<version>2021.6.4</version>
15+
<version>2021.6.17</version>
1616
<packaging>jar</packaging>
1717

1818
<name>spotify-web-api-parser</name>
@@ -27,7 +27,7 @@
2727
<dependency>
2828
<groupId>de.sonallux.spotify</groupId>
2929
<artifactId>spotify-web-api-core</artifactId>
30-
<version>2021.6.4</version>
30+
<version>2021.6.17</version>
3131
</dependency>
3232
<dependency>
3333
<groupId>org.jsoup</groupId>

spotify-web-api-parser/response-types.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ category-playlists:
153153
responseTypes:
154154
- type: SnapshotIdObject
155155
status: 200
156-
- type: Void
156+
- type: SnapshotIdObject
157157
status: 201
158158
category-albums:
159159
endpoint-get-multiple-albums:

0 commit comments

Comments
 (0)