Skip to content
Snippets Groups Projects
Commit 6c8d6808 authored by David Trattnig's avatar David Trattnig
Browse files

Updated spec.

parent 59e10ab8
No related branches found
No related tags found
No related merge requests found
......@@ -91,6 +91,8 @@ class ClockInfo(Model):
:param current_schedule: The current_schedule of this ClockInfo.
:type current_schedule: Schedule
"""
if current_schedule is None:
raise ValueError("Invalid value for `current_schedule`, must not be `None`") # noqa: E501
self._current_schedule = current_schedule
......
......@@ -371,6 +371,8 @@ components:
details: Stringified JSON Object
log_time: 2020-08-29T09:12:33.001Z
ClockInfo:
required:
- current_schedule
type: object
properties:
current_track:
......@@ -400,7 +402,11 @@ components:
schedule_id: 1
schedule_start: 2020-08-29T09:12:33.001Z
current_schedule:
entries:
playlist_id: 38
show_name: Future Pop
fallback_type: 0
schedule_end: 2020-08-29T09:12:33.001Z
playlist_entries:
- duration: 363
artist: xxyyxx
album: XXYYXX
......@@ -411,10 +417,6 @@ components:
album: XXYYXX
title: Alone
type: 1
playlist_id: 38
show_name: Future Pop
fallback_type: 0
schedule_end: 2020-08-29T09:12:33.001Z
schedule_id: 23
schedule_start: 2020-08-29T09:12:33.001Z
Schedule:
......@@ -445,12 +447,16 @@ components:
fallback_type:
type: integer
example: 0
entries:
playlist_entries:
type: array
items:
$ref: '#/components/schemas/PlaylistEntry'
example:
entries:
playlist_id: 38
show_name: Future Pop
fallback_type: 0
schedule_end: 2020-08-29T09:12:33.001Z
playlist_entries:
- duration: 363
artist: xxyyxx
album: XXYYXX
......@@ -461,10 +467,6 @@ components:
album: XXYYXX
title: Alone
type: 1
playlist_id: 38
show_name: Future Pop
fallback_type: 0
schedule_end: 2020-08-29T09:12:33.001Z
schedule_id: 23
schedule_start: 2020-08-29T09:12:33.001Z
PlaylistEntry:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment