Skip to content

Commit d4c59e2

Browse files
authored
Automated update from Spotify Web API reference (#77)
1 parent 6c40890 commit d4c59e2

File tree

6 files changed

+56
-25
lines changed

6 files changed

+56
-25
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.5.20</version>
9+
<version>2021.6.4</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.5.20</version>
10+
<version>2021.6.4</version>
1111
<relativePath>../pom.xml</relativePath>
1212
</parent>
1313

1414
<artifactId>spotify-web-api-core</artifactId>
15-
<version>2021.5.20</version>
15+
<version>2021.6.4</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: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,8 @@ objects:
12161216
description: The copyright statements of the show.
12171217
- name: description
12181218
type: String
1219-
description: A description of the show.
1219+
description: "A description of the show. HTML tags are stripped away from this\
1220+
\ field, use `html_description` field in case HTML tags are needed."
12201221
- name: episodes
12211222
type: "PagingObject[SimplifiedEpisodeObject]"
12221223
description: A list of the show's episodes.
@@ -1230,6 +1231,9 @@ objects:
12301231
- name: href
12311232
type: String
12321233
description: A link to the Web API endpoint providing full details of the show.
1234+
- name: html_description
1235+
type: String
1236+
description: A description of the show. This field may contain HTML tags.
12331237
- name: id
12341238
type: String
12351239
description: "The [Spotify ID](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)\
@@ -1509,7 +1513,8 @@ objects:
15091513
description: The copyright statements of the show.
15101514
- name: description
15111515
type: String
1512-
description: A description of the show.
1516+
description: "A description of the show. HTML tags are stripped away from this\
1517+
\ field, use `html_description` field in case HTML tags are needed."
15131518
- name: explicit
15141519
type: Boolean
15151520
description: Whether or not the show has explicit content (true = yes it does;
@@ -1520,6 +1525,9 @@ objects:
15201525
- name: href
15211526
type: String
15221527
description: A link to the Web API endpoint providing full details of the show.
1528+
- name: html_description
1529+
type: String
1530+
description: A description of the show. This field may contain HTML tags.
15231531
- name: id
15241532
type: String
15251533
description: "The [Spotify ID](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)\
@@ -3125,8 +3133,16 @@ categories:
31253133
parameters:
31263134
- location: HEADER
31273135
name: Authorization
3128-
description: A valid user access token or your client credentials. Requires
3129-
the `user-follow-modify` scope.
3136+
description: "A valid access token from the Spotify Accounts service: see\
3137+
\ the [Web API Authorization Guide](https://developer.spotify.com/documentation/general/guides/authorization-guide/)\
3138+
\ for details. The access token must have been issued on behalf of the\
3139+
\ user. \nFollowing a playlist publicly requires authorization of the\
3140+
\ `playlist-modify-public` scope; following a playlist privately requires\
3141+
\ the `playlist-modify-private` scope. See [Using Scopes](https://developer.spotify.com/documentation/general/guides/authorization-guide/#list-of-scopes).\
3142+
\ \n*Note that the scopes you provide relate only to whether the current\
3143+
\ user is following the playlist publicly or privately (i.e. showing others\
3144+
\ what they are following), not whether the playlist itself is public\
3145+
\ or private.*"
31303146
type: String
31313147
required: true
31323148
- location: HEADER
@@ -3145,17 +3161,16 @@ categories:
31453161
- location: BODY
31463162
name: public
31473163
description: "Defaults to `true`. If `true` the playlist will be included\
3148-
\ in user's public playlists, if `false` it will remain private. To be\
3149-
\ able to follow playlists privately, the user must have granted the `playlist-modify-private`\
3150-
\ [scope](https://developer.spotify.com/documentation/general/guides/authorization-guide/#list-of-scopes)."
3164+
\ in user's public playlists, if `false` it will remain private."
31513165
type: Boolean
31523166
required: false
31533167
responseDescription: "On success, the HTTP status code in the response header\
31543168
\ is `200` OK and the response body is empty.\nOn error, the header status\
31553169
\ code is an [error code](https://developer.spotify.com/documentation/web-api/#response-status-codes)\
31563170
\ and the response body contains an [error object](https://developer.spotify.com/documentation/web-api/#response-schema)."
31573171
scopes:
3158-
- user-follow-modify
3172+
- playlist-modify-public
3173+
- playlist-modify-private
31593174
responseTypes:
31603175
- type: Void
31613176
status: 200

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

1414
<artifactId>spotify-web-api-generator-open-api</artifactId>
15-
<version>2021.5.20</version>
15+
<version>2021.6.4</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.5.20</version>
32+
<version>2021.6.4</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: 24 additions & 8 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.5.20
7+
version: 2021.6.4
88
externalDocs:
99
description: Find more info on the official Spotify Web API Reference
1010
url: https://developer.spotify.com/documentation/web-api/reference
@@ -1854,8 +1854,16 @@ paths:
18541854
parameters:
18551855
- name: Authorization
18561856
in: header
1857-
description: A valid user access token or your client credentials. Requires
1858-
the `user-follow-modify` scope.
1857+
description: "A valid access token from the Spotify Accounts service: see\
1858+
\ the [Web API Authorization Guide](https://developer.spotify.com/documentation/general/guides/authorization-guide/)\
1859+
\ for details. The access token must have been issued on behalf of the user.\
1860+
\ \nFollowing a playlist publicly requires authorization of the `playlist-modify-public`\
1861+
\ scope; following a playlist privately requires the `playlist-modify-private`\
1862+
\ scope. See [Using Scopes](https://developer.spotify.com/documentation/general/guides/authorization-guide/#list-of-scopes).\
1863+
\ \n*Note that the scopes you provide relate only to whether the current\
1864+
\ user is following the playlist publicly or privately (i.e. showing others\
1865+
\ what they are following), not whether the playlist itself is public or\
1866+
\ private.*"
18591867
required: true
18601868
schema:
18611869
type: string
@@ -1884,8 +1892,7 @@ paths:
18841892
type: boolean
18851893
description: "Defaults to `true`. If `true` the playlist will be\
18861894
\ included in user's public playlists, if `false` it will remain\
1887-
\ private. To be able to follow playlists privately, the user\
1888-
\ must have granted the `playlist-modify-private` [scope](https://developer.spotify.com/documentation/general/guides/authorization-guide/#list-of-scopes)."
1895+
\ private."
18891896
required: false
18901897
responses:
18911898
default:
@@ -1897,7 +1904,8 @@ paths:
18971904
\ and the response body contains an [error object](https://developer.spotify.com/documentation/web-api/#response-schema)."
18981905
security:
18991906
- spotify_auth:
1900-
- user-follow-modify
1907+
- playlist-modify-public
1908+
- playlist-modify-private
19011909
delete:
19021910
tags:
19031911
- category-follow
@@ -7353,7 +7361,8 @@ components:
73537361
$ref: '#/components/schemas/CopyrightObject'
73547362
description:
73557363
type: string
7356-
description: A description of the show.
7364+
description: "A description of the show. HTML tags are stripped away from\
7365+
\ this field, use `html_description` field in case HTML tags are needed."
73577366
episodes:
73587367
type: object
73597368
properties:
@@ -7400,6 +7409,9 @@ components:
74007409
type: string
74017410
description: A link to the Web API endpoint providing full details of the
74027411
show.
7412+
html_description:
7413+
type: string
7414+
description: A description of the show. This field may contain HTML tags.
74037415
id:
74047416
type: string
74057417
description: "The [Spotify ID](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)\
@@ -7698,7 +7710,8 @@ components:
76987710
$ref: '#/components/schemas/CopyrightObject'
76997711
description:
77007712
type: string
7701-
description: A description of the show.
7713+
description: "A description of the show. HTML tags are stripped away from\
7714+
\ this field, use `html_description` field in case HTML tags are needed."
77027715
explicit:
77037716
type: boolean
77047717
description: Whether or not the show has explicit content (true = yes it
@@ -7709,6 +7722,9 @@ components:
77097722
type: string
77107723
description: A link to the Web API endpoint providing full details of the
77117724
show.
7725+
html_description:
7726+
type: string
7727+
description: A description of the show. This field may contain HTML tags.
77127728
id:
77137729
type: string
77147730
description: "The [Spotify ID](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)\

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

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

0 commit comments

Comments
 (0)