Skip to content

Commit 50f5276

Browse files
authored
Spotify Web API reference update (#92)
* Automated update from Spotify Web API reference * Update fixes * Add fix for Authorization header in available markets endpoint
1 parent bbf1ae0 commit 50f5276

File tree

8 files changed

+112
-149
lines changed

8 files changed

+112
-149
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.7.20</version>
9+
<version>2021.8.15</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.7.20</version>
10+
<version>2021.8.15</version>
1111
<relativePath>../pom.xml</relativePath>
1212
</parent>
1313

1414
<artifactId>spotify-web-api-core</artifactId>
15-
<version>2021.7.20</version>
15+
<version>2021.8.15</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: 42 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ objects:
88
properties:
99
- name: album_type
1010
type: String
11-
description: "The type of the album: `album`, `single`, or `compilation`."
11+
description: The type of the album.
1212
- name: artists
1313
type: "Array[ArtistObject]"
1414
description: The artists of the album. Each artist object includes a link in
@@ -17,7 +17,7 @@ objects:
1717
type: "Array[String]"
1818
description: "The markets in which the album is available: [ISO 3166-1 alpha-2\
1919
\ country codes](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). Note that\
20-
\ an album is considered available in a market when at least 1 of its tracks\
20+
\ an album is considered available in a market when at least one of its tracks\
2121
\ is available in that market."
2222
- name: copyrights
2323
type: "Array[CopyrightObject]"
@@ -30,8 +30,8 @@ objects:
3030
description: Known external URLs for this album.
3131
- name: genres
3232
type: "Array[String]"
33-
description: "A list of the genres used to classify the album. For example:\
34-
\ \"Prog Rock\" , \"Post-Grunge\". (If not yet classified, the array is empty.)"
33+
description: "A list of the genres used to classify the album. (If not yet classified,\
34+
\ the array is empty.)"
3535
- name: href
3636
type: String
3737
description: A link to the Web API endpoint providing full details of the album.
@@ -50,18 +50,16 @@ objects:
5050
\ may be an empty string."
5151
- name: popularity
5252
type: Integer
53-
description: "The popularity of the album. The value will be between 0 and 100,\
54-
\ with 100 being the most popular. The popularity is calculated from the popularity\
55-
\ of the album's individual tracks."
53+
description: "The popularity of the album, with 100 being the most popular.\
54+
\ The popularity is calculated from the popularity of the album's individual\
55+
\ tracks."
5656
- name: release_date
5757
type: String
58-
description: "The date the album was first released, for example \"1981-12-15\"\
59-
. Depending on the precision, it might be shown as \"1981\" or \"1981-12\"\
60-
."
58+
description: "The date the album was first released. Depending on the precision,\
59+
\ it might be shown as \"1981\" or \"1981-12\"."
6160
- name: release_date_precision
6261
type: String
63-
description: "The precision with which release_date value is known: \"year\"\
64-
\ , \"month\" , or \"day\"."
62+
description: The precision with which release_date value is known.
6563
- name: restrictions
6664
type: AlbumRestrictionObject
6765
description: "Included in the response when a content restriction is applied.\
@@ -75,7 +73,7 @@ objects:
7573
description: The tracks of the album.
7674
- name: type
7775
type: String
78-
description: "The object type: \"album\""
76+
description: The object type.
7977
- name: uri
8078
type: String
8179
description: The Spotify URI for the album.
@@ -86,13 +84,10 @@ objects:
8684
properties:
8785
- name: reason
8886
type: String
89-
description: "The reason for the restriction. Supported values: \n\n- `market`\
90-
\ - The content item is not available in the given market. \n- `product`\
91-
\ - The content item is not available for the user's subscription type. \n\
92-
- `explicit` - The content item is explicit and the user's account is set\
93-
\ to not play explicit content. \n Additional reasons may be added in the\
94-
\ future. **Note**: If you use this field, make sure that your application\
95-
\ safely handles unknown values."
87+
description: "The reason for the restriction. Albums may be restricted if the\
88+
\ content is not available in a given market, to the user's subscription type,\
89+
\ or when the user's account is set to not play explicit content. Additional\
90+
\ reasons may be added in the future."
9691
AlbumsObject:
9792
name: AlbumsObject
9893
properties:
@@ -112,9 +107,8 @@ objects:
112107
description: Information about the followers of the artist.
113108
- name: genres
114109
type: "Array[String]"
115-
description: "A list of the genres the artist is associated with. For example:\
116-
\ `\"Prog Rock\"` , `\"Post-Grunge\"`. (If not yet classified, the array is\
117-
\ empty.)"
110+
description: "A list of the genres the artist is associated with. If not yet\
111+
\ classified, the array is empty."
118112
- name: href
119113
type: String
120114
description: A link to the Web API endpoint providing full details of the artist.
@@ -135,7 +129,7 @@ objects:
135129
\ from the popularity of all the artist's tracks."
136130
- name: type
137131
type: String
138-
description: "The object type: `\"artist\"`"
132+
description: The object type.
139133
- name: uri
140134
type: String
141135
description: "The [Spotify URI](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)\
@@ -432,7 +426,7 @@ objects:
432426
properties:
433427
- name: id
434428
type: String
435-
description: The device ID. This may be `null`.
429+
description: The device ID.
436430
- name: is_active
437431
type: Boolean
438432
description: If this device is the currently active device.
@@ -452,7 +446,7 @@ objects:
452446
."
453447
- name: volume_percent
454448
type: Integer
455-
description: The current volume in percent. This may be null.
449+
description: The current volume in percent.
456450
DevicesObject:
457451
name: DevicesObject
458452
id: object-devicesobject
@@ -558,8 +552,7 @@ objects:
558552
`."
559553
- name: release_date_precision
560554
type: String
561-
description: "The precision with which `release_date` value is known: `\"year\"\
562-
`, `\"month\"`, or `\"day\"`."
555+
description: The precision with which `release_date` value is known.
563556
- name: restrictions
564557
type: EpisodeRestrictionObject
565558
description: "Included in the response when a content restriction is applied.\
@@ -574,7 +567,7 @@ objects:
574567
description: The show on which the episode belongs.
575568
- name: type
576569
type: String
577-
description: "The object type: \"episode\"."
570+
description: The object type.
578571
- name: uri
579572
type: String
580573
description: "The [Spotify URI](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)\
@@ -694,13 +687,13 @@ objects:
694687
properties:
695688
- name: height
696689
type: Integer
697-
description: "The image height in pixels. If unknown: `null` or not returned."
690+
description: The image height in pixels.
698691
- name: url
699692
type: String
700693
description: The source URL of the image.
701694
- name: width
702695
type: Integer
703-
description: "The image width in pixels. If unknown: `null` or not returned."
696+
description: The image width in pixels.
704697
LinkedTrackObject:
705698
name: LinkedTrackObject
706699
id: object-linkedtrackobject
@@ -989,7 +982,7 @@ objects:
989982
description: The user's profile image.
990983
- name: type
991984
type: String
992-
description: "The object type: \"user\""
985+
description: The object type.
993986
- name: uri
994987
type: String
995988
description: "The [Spotify URI](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)\
@@ -1258,7 +1251,7 @@ objects:
12581251
description: The publisher of the show.
12591252
- name: type
12601253
type: String
1261-
description: "The object type: \"show\"."
1254+
description: The object type.
12621255
- name: uri
12631256
type: String
12641257
description: "The [Spotify URI](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)\
@@ -1276,14 +1269,11 @@ objects:
12761269
properties:
12771270
- name: album_group
12781271
type: String
1279-
description: "The field is present when getting an artist's albums. Possible\
1280-
\ values are \"album\", \"single\", \"compilation\", \"appears_on\". Compare\
1281-
\ to album_type this field represents relationship between the artist and\
1282-
\ the album."
1272+
description: The field is present when getting an artist's albums. Compare to
1273+
album_type this field represents relationship between the artist and the album.
12831274
- name: album_type
12841275
type: String
1285-
description: "The type of the album: one of \"album\", \"single\", or \"compilation\"\
1286-
."
1276+
description: The type of the album.
12871277
- name: artists
12881278
type: "Array[SimplifiedArtistObject]"
12891279
description: The artists of the album. Each artist object includes a link in
@@ -1313,23 +1303,19 @@ objects:
13131303
\ may be an empty string."
13141304
- name: release_date
13151305
type: String
1316-
description: "The date the album was first released, for example `1981`. Depending\
1317-
\ on the precision, it might be shown as `1981-12` or `1981-12-15`."
1306+
description: The date the album was first released.
13181307
- name: release_date_precision
13191308
type: String
1320-
description: "The precision with which `release_date` value is known: `year`\
1321-
\ , `month` , or `day`."
1309+
description: The precision with which `release_date` value is known.
13221310
- name: restrictions
13231311
type: AlbumRestrictionObject
1324-
description: "Included in the response when a content restriction is applied.\
1325-
\ See [Restriction Object](https://developer.spotify.com/documentation/web-api/reference/#object-albumrestrictionobject)\
1326-
\ for more details."
1312+
description: Included in the response when a content restriction is applied.
13271313
- name: total_tracks
13281314
type: Integer
1329-
description: The total number of tracks in the album.
1315+
description: The number of tracks in the album.
13301316
- name: type
13311317
type: String
1332-
description: "The object type: \"album\""
1318+
description: The object type.
13331319
- name: uri
13341320
type: String
13351321
description: "The [Spotify URI](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)\
@@ -1354,7 +1340,7 @@ objects:
13541340
description: The name of the artist.
13551341
- name: type
13561342
type: String
1357-
description: "The object type: `\"artist\"`"
1343+
description: The object type.
13581344
- name: uri
13591345
type: String
13601346
description: "The [Spotify URI](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)\
@@ -1421,8 +1407,7 @@ objects:
14211407
`."
14221408
- name: release_date_precision
14231409
type: String
1424-
description: "The precision with which `release_date` value is known: `\"year\"\
1425-
`, `\"month\"`, or `\"day\"`."
1410+
description: The precision with which `release_date` value is known.
14261411
- name: restrictions
14271412
type: EpisodeRestrictionObject
14281413
description: "Included in the response when a content restriction is applied.\
@@ -1434,7 +1419,7 @@ objects:
14341419
access token is a user token and has the scope 'user-read-playback-position'.
14351420
- name: type
14361421
type: String
1437-
description: "The object type: \"episode\"."
1422+
description: The object type.
14381423
- name: uri
14391424
type: String
14401425
description: "The [Spotify URI](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)\
@@ -1552,7 +1537,7 @@ objects:
15521537
description: The publisher of the show.
15531538
- name: type
15541539
type: String
1555-
description: "The object type: \"show\"."
1540+
description: The object type.
15561541
- name: uri
15571542
type: String
15581543
description: "The [Spotify URI](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)\
@@ -3059,15 +3044,14 @@ categories:
30593044
required: false
30603045
- location: QUERY
30613046
name: type
3062-
description: "The ID type: either `artist` or `user`."
3047+
description: The ID type.
30633048
type: String
30643049
required: true
30653050
- location: QUERY
30663051
name: ids
30673052
description: "A comma-separated list of the artist or the user [Spotify\
30683053
\ IDs](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids).\
3069-
\ For example: `ids=74ASZWbe4lXaubB36ztrGX,08td7MxkoHQkXnWAYD8d6Q`. A\
3070-
\ maximum of 50 IDs can be sent in one request."
3054+
\ A maximum of 50 IDs can be sent in one request."
30713055
type: String
30723056
required: true
30733057
- location: BODY
@@ -3348,7 +3332,7 @@ categories:
33483332
description: "A valid access token from the Spotify Accounts service: see\
33493333
\ the [Web API Authorization Guide](https://developer.spotify.com/documentation/general/guides/authorization-guide/)\
33503334
\ for details. The access token must have been isued on behalf of the\
3351-
\ user. The `user-libary-read` scope must have been authorised by the\
3335+
\ user. The `user-library-read` scope must have been authorised by the\
33523336
\ user."
33533337
type: String
33543338
required: true
@@ -3512,7 +3496,7 @@ categories:
35123496
description: "A valid access token from the Spotify Accounts service: see\
35133497
\ the [Web API Authorization Guide](https://developer.spotify.com/documentation/general/guides/authorization-guide/)\
35143498
\ for details. The access token must have been isued on behalf of the\
3515-
\ user. The `user-libary-read` scope must have been authorised by the\
3499+
\ user. The `user-library-read` scope must have been authorised by the\
35163500
\ user."
35173501
type: String
35183502
required: true

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

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

1818
<name>spotify-web-api-generator-open-api</name>
@@ -31,7 +31,7 @@
3131
<dependency>
3232
<groupId>de.sonallux.spotify</groupId>
3333
<artifactId>spotify-web-api-core</artifactId>
34-
<version>2021.7.20</version>
34+
<version>2021.8.15</version>
3535
</dependency>
3636
<dependency>
3737
<groupId>com.fasterxml.jackson.core</groupId>

0 commit comments

Comments
 (0)