Rename active_schedule to override_schedule in request

This commit is contained in:
Tobias Reisinger 2024-05-26 22:47:13 +02:00
commit 470b9c905b
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 26 additions and 15 deletions

View file

@ -6,7 +6,7 @@
"url": "https://git.serguzim.me/emgauwa/"
},
"title": "Emgauwa API v1",
"version": "0.5.1",
"version": "0.6.0",
"description": "Server API to manage an Emgauwa system."
},
"tags": [
@ -524,8 +524,10 @@
"name": {
"type": "string"
},
"active_schedule": {
"override_schedule": {
"type": "object",
"nullable": true,
"description": "NULL will remove the override schedule, missing field will not change the override schedule",
"properties": {
"id": {
"$ref": "#/components/schemas/schedule_id"
@ -1118,6 +1120,14 @@
"active_schedule": {
"$ref": "#/components/schemas/schedule_simple"
},
"override_schedule": {
"nullable": true,
"allOf": [
{
"$ref": "#/components/schemas/schedule_simple"
}
]
},
"schedules": {
"type": "array",
"maxItems": 7,