Skip to content

Commit f33cb2f

Browse files
committed
fix(patches): patch timestamp properties to be an int64
1 parent c9b7628 commit f33cb2f

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

fixed-spotify-open-api.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4302,6 +4302,7 @@ components:
43024302
timestamp:
43034303
type: integer
43044304
description: Unix Millisecond Timestamp when data was fetched.
4305+
format: int64
43054306
progress_ms:
43064307
type: integer
43074308
description: Progress into the currently playing track or episode. Can be
@@ -4504,6 +4505,7 @@ components:
45044505
example: 1495193577
45054506
description: The Unix timestamp (in seconds) at which this track was
45064507
analyzed.
4508+
format: int64
45074509
analysis_time:
45084510
type: number
45094511
example: 6.93906
@@ -6670,6 +6672,7 @@ components:
66706672
description: A Context Object. Can be `null`.
66716673
timestamp:
66726674
type: integer
6675+
format: int64
66736676
description: Unix Millisecond Timestamp when data was fetched
66746677
progress_ms:
66756678
type: integer
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
description: Fix type of timestamp property for AudioAnalysisObject
2+
operations:
3+
- op: test
4+
path: "$.components.schemas.AudioAnalysisObject.properties.meta.properties.timestamp"
5+
value:
6+
type: integer
7+
example: 1495193577
8+
description: The Unix timestamp (in seconds) at which this track was
9+
analyzed.
10+
- op: put
11+
path: "$.components.schemas.AudioAnalysisObject.properties.meta.properties.timestamp"
12+
key: format
13+
value: int64
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
description: Fix type of timestamp property for CurrentlyPlayingContextObject
2+
operations:
3+
- op: test
4+
path: "$.components.schemas.CurrentlyPlayingContextObject.properties.timestamp"
5+
value:
6+
type: integer
7+
description: Unix Millisecond Timestamp when data was fetched.
8+
- op: put
9+
path: "$.components.schemas.CurrentlyPlayingContextObject.properties.timestamp"
10+
key: format
11+
value: int64

spotify-web-api-open-api/src/main/resources/patches/schema-CurrentlyPlayingObject.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ operations:
1616
description: A Context Object. Can be `null`.
1717
timestamp:
1818
type: integer
19+
format: int64
1920
description: Unix Millisecond Timestamp when data was fetched
2021
progress_ms:
2122
type: integer

0 commit comments

Comments
 (0)