Skip to content

Commit d4909da

Browse files
committed
Fix SearchResponseObject
1 parent 0593a05 commit d4909da

File tree

7 files changed

+28
-28
lines changed

7 files changed

+28
-28
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.4.28</version>
9+
<version>2021.5.1</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.4.28</version>
10+
<version>2021.5.1</version>
1111
<relativePath>../pom.xml</relativePath>
1212
</parent>
1313

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

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

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,22 +1105,22 @@ objects:
11051105
SearchResponseObject:
11061106
name: SearchResponseObject
11071107
properties:
1108-
- name: album
1108+
- name: albums
11091109
type: "PagingObject[SimplifiedAlbumObject]"
11101110
description: ""
1111-
- name: artist
1111+
- name: artists
11121112
type: "PagingObject[ArtistObject]"
11131113
description: ""
1114-
- name: episode
1114+
- name: episodes
11151115
type: "PagingObject[SimplifiedEpisodeObject]"
11161116
description: ""
1117-
- name: playlist
1117+
- name: playlists
11181118
type: "PagingObject[SimplifiedPlaylistObject]"
11191119
description: ""
1120-
- name: show
1120+
- name: shows
11211121
type: "PagingObject[SimplifiedShowObject]"
11221122
description: ""
1123-
- name: track
1123+
- name: tracks
11241124
type: "PagingObject[TrackObject]"
11251125
description: ""
11261126
SectionObject:

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.4.28</version>
10+
<version>2021.5.1</version>
1111
<relativePath>../pom.xml</relativePath>
1212
</parent>
1313

1414
<artifactId>spotify-web-api-generator-open-api</artifactId>
15-
<version>2021.4.28</version>
15+
<version>2021.5.1</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.4.28</version>
32+
<version>2021.5.1</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: 7 additions & 7 deletions
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.4.28
7+
version: 2021.5.1
88
externalDocs:
99
description: Find more info on the official Spotify Web API Reference
1010
url: https://developer.spotify.com/documentation/web-api/reference
@@ -7030,7 +7030,7 @@ components:
70307030
SearchResponseObject:
70317031
type: object
70327032
properties:
7033-
album:
7033+
albums:
70347034
type: object
70357035
properties:
70367036
href:
@@ -7066,7 +7066,7 @@ components:
70667066
externalDocs:
70677067
description: Find more info on the official Spotify Web API Reference
70687068
url: https://developer.spotify.com/documentation/web-api/reference/#object-pagingobject
7069-
artist:
7069+
artists:
70707070
type: object
70717071
properties:
70727072
href:
@@ -7102,7 +7102,7 @@ components:
71027102
externalDocs:
71037103
description: Find more info on the official Spotify Web API Reference
71047104
url: https://developer.spotify.com/documentation/web-api/reference/#object-pagingobject
7105-
episode:
7105+
episodes:
71067106
type: object
71077107
properties:
71087108
href:
@@ -7138,7 +7138,7 @@ components:
71387138
externalDocs:
71397139
description: Find more info on the official Spotify Web API Reference
71407140
url: https://developer.spotify.com/documentation/web-api/reference/#object-pagingobject
7141-
playlist:
7141+
playlists:
71427142
type: object
71437143
properties:
71447144
href:
@@ -7174,7 +7174,7 @@ components:
71747174
externalDocs:
71757175
description: Find more info on the official Spotify Web API Reference
71767176
url: https://developer.spotify.com/documentation/web-api/reference/#object-pagingobject
7177-
show:
7177+
shows:
71787178
type: object
71797179
properties:
71807180
href:
@@ -7210,7 +7210,7 @@ components:
72107210
externalDocs:
72117211
description: Find more info on the official Spotify Web API Reference
72127212
url: https://developer.spotify.com/documentation/web-api/reference/#object-pagingobject
7213-
track:
7213+
tracks:
72147214
type: object
72157215
properties:
72167216
href:

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.4.28</version>
10+
<version>2021.5.1</version>
1111
<relativePath>../pom.xml</relativePath>
1212
</parent>
1313

1414
<artifactId>spotify-web-api-parser</artifactId>
15-
<version>2021.4.28</version>
15+
<version>2021.5.1</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.4.28</version>
30+
<version>2021.5.1</version>
3131
</dependency>
3232
<dependency>
3333
<groupId>org.jsoup</groupId>

spotify-web-api-parser/src/main/java/de/sonallux/spotify/parser/ApiObjectFixes.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ static List<SpotifyWebApiObject> getMissingObjects() {
161161

162162
//SearchResponseObject
163163
objects.add(new SpotifyWebApiObject("SearchResponseObject")
164-
.addProperty(new SpotifyWebApiObject.Property("album", "PagingObject[SimplifiedAlbumObject]"))
165-
.addProperty(new SpotifyWebApiObject.Property("artist", "PagingObject[ArtistObject]"))
166-
.addProperty(new SpotifyWebApiObject.Property("playlist", "PagingObject[SimplifiedPlaylistObject]"))
167-
.addProperty(new SpotifyWebApiObject.Property("track", "PagingObject[TrackObject]"))
168-
.addProperty(new SpotifyWebApiObject.Property("show", "PagingObject[SimplifiedShowObject]"))
169-
.addProperty(new SpotifyWebApiObject.Property("episode", "PagingObject[SimplifiedEpisodeObject]"))
164+
.addProperty(new SpotifyWebApiObject.Property("albums", "PagingObject[SimplifiedAlbumObject]"))
165+
.addProperty(new SpotifyWebApiObject.Property("artists", "PagingObject[ArtistObject]"))
166+
.addProperty(new SpotifyWebApiObject.Property("playlists", "PagingObject[SimplifiedPlaylistObject]"))
167+
.addProperty(new SpotifyWebApiObject.Property("tracks", "PagingObject[TrackObject]"))
168+
.addProperty(new SpotifyWebApiObject.Property("shows", "PagingObject[SimplifiedShowObject]"))
169+
.addProperty(new SpotifyWebApiObject.Property("episodes", "PagingObject[SimplifiedEpisodeObject]"))
170170
);
171171

172172
//ShowsObject

0 commit comments

Comments
 (0)