diff --git a/schemas/ak.schema.json b/schemas/ak.schema.json index a7428a30ff6ce7e47c8650ec6de66e80112a2b4c..24395110fcd3c849cfee0def61edcf61b55e0e55 100644 --- a/schemas/ak.schema.json +++ b/schemas/ak.schema.json @@ -1,11 +1,11 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "/schema/ak.schema.json", + "$id": "schemas/ak.schema.json", "title": "AK", "type": "object", "properties": { "id": { - "$ref": "/schema/common/id.schema.json", + "$ref": "common/id.schema.json", "description": "The unique identifier of an AK" }, "duration": { @@ -14,22 +14,22 @@ "exclusiveMinimum": 0 }, "room_constraints": { - "$ref": "/schema/common/constraints.schema.json", + "$ref": "common/constraints.schema.json", "description": "Room constraints required by this AK" }, "time_constraints": { - "$ref": "/schema/common/constraints.schema.json", + "$ref": "common/constraints.schema.json", "description": "Time constraints required by this AK" }, "properties": { "type": "object", "properties": { "conflicts": { - "$ref": "/schema/common/id_array.schema.json", + "$ref": "common/id_array.schema.json", "description": "IDs of all AKs that are in conflict with this AK" }, "dependencies": { - "$ref": "/schema/common/id_array.schema.json", + "$ref": "common/id_array.schema.json", "description": "IDs of all AKs that should be scheduled before this AK" } }, @@ -45,11 +45,11 @@ "reso": {"description": "Whether this AK intends to introduce a resolution", "type": "boolean"}, "duration_in_hours": {"description": "AK duration in hours", "type": "number"}, "django_ak_id": { - "$ref": "/schema/common/id.schema.json", + "$ref": "common/id.schema.json", "description": "Unique identifier of the AK object in the django database" }, "types": { - "$ref": "/schema/common/constraints.schema.json", + "$ref": "common/constraints.schema.json", "description": "Types of this AK" } }, diff --git a/schemas/common/constraints.schema.json b/schemas/common/constraints.schema.json index 7d3fce56e26ba2403538583c20a0d211b56c2774..21c0dcd661673da3e90d795df2c77cc700905808 100644 --- a/schemas/common/constraints.schema.json +++ b/schemas/common/constraints.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "/schema/common/constraints.schema.json", + "$id": "schemas/common/constraints.schema.json", "type": "array", "items": {"type": "string"}, "uniqueItems": true diff --git a/schemas/common/id.schema.json b/schemas/common/id.schema.json index 4dd06e349a9ec29caf5cf051d9044a9e47a2924d..636d6c709c54d425d94ef9dbee8c28d232e3319b 100644 --- a/schemas/common/id.schema.json +++ b/schemas/common/id.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "/schema/common/id.schema.json", + "$id": "schemas/common/id.schema.json", "type": "integer", "minimum": 0 } \ No newline at end of file diff --git a/schemas/common/id_array.schema.json b/schemas/common/id_array.schema.json index 622e692ac617ed4fc5ce8261b9da135a0ab1e79d..322fcb6ba76d8c073190d6ac6825fd834e8e8b7a 100644 --- a/schemas/common/id_array.schema.json +++ b/schemas/common/id_array.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "/schema/common/id_array.schema.json", + "$id": "schemas/common/id_array.schema.json", "type": "array", "items": {"type": "integer"}, "uniqueItems": true diff --git a/schemas/participant.schema.json b/schemas/participant.schema.json index a7eff8e8f87534d4a50b7789c82a07f6163ebb98..249944f4f34dbdc0fe00fede6e1431b743f47eb3 100644 --- a/schemas/participant.schema.json +++ b/schemas/participant.schema.json @@ -1,11 +1,11 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "/schema/participant.schema.json", + "$id": "schemas/participant.schema.json", "title": "Participant", "type": "object", "properties": { "id": { - "$ref": "/schema/common/id.schema.json", + "$ref": "common/id.schema.json", "description": "The unique identifier of a participant" }, "preferences": { @@ -15,7 +15,7 @@ "type": "object", "properties": { "ak_id": { - "$ref": "/schema/common/id.schema.json", + "$ref": "common/id.schema.json", "description": "The unique identifier of the AK" }, "required": { @@ -39,11 +39,11 @@ "uniqueItems": true }, "room_constraints": { - "$ref": "/schema/common/constraints.schema.json", + "$ref": "common/constraints.schema.json", "description": "Room constraints required by this participant" }, "time_constraints": { - "$ref": "/schema/common/constraints.schema.json", + "$ref": "common/constraints.schema.json", "description": "Time constraints required by this participant" }, "info": { diff --git a/schemas/room.schema.json b/schemas/room.schema.json index a4ab82df9e157cc2d368ec1813ea601c1f96cbe4..f77d8fdbd1ae4ae490819bc70e182bdd25f2e0e8 100644 --- a/schemas/room.schema.json +++ b/schemas/room.schema.json @@ -1,11 +1,11 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "/schema/room.schema.json", + "$id": "schemas/room.schema.json", "title": "Room", "type": "object", "properties": { "id": { - "$ref": "/schema/common/id.schema.json", + "$ref": "common/id.schema.json", "description": "The unique identifier of a room" }, "capacity": { @@ -16,11 +16,11 @@ ] }, "fulfilled_room_constraints": { - "$ref": "/schema/common/constraints.schema.json", + "$ref": "common/constraints.schema.json", "description": "Constraints fulfilled by this room" }, "time_constraints": { - "$ref": "/schema/common/constraints.schema.json", + "$ref": "common/constraints.schema.json", "description": "Time constraints required by this room" }, "info": { diff --git a/schemas/solver-input.schema.json b/schemas/solver-input.schema.json index a55057dba34c514435a46e991b3671eb2f289d5e..95952d706a43113f54c53c7aa6004c8bd27bbea4 100644 --- a/schemas/solver-input.schema.json +++ b/schemas/solver-input.schema.json @@ -1,12 +1,12 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "/schema/solver-input.schema.json", + "$id": "schemas/solver-input.schema.json", "type": "object", "properties": { - "aks": {"type": "array", "items": {"$ref": "/schema/ak.schema.json"}, "uniqueItems": true}, - "rooms": {"type": "array", "items": {"$ref": "/schema/room.schema.json"}, "uniqueItems": true}, - "participants": {"type": "array", "items": {"$ref": "/schema/participant.schema.json"}, "uniqueItems": true}, - "timeslots": {"$ref": "/schema/timeslot.schema.json"}, + "aks": {"type": "array", "items": {"$ref": "ak.schema.json"}, "uniqueItems": true}, + "rooms": {"type": "array", "items": {"$ref": "room.schema.json"}, "uniqueItems": true}, + "participants": {"type": "array", "items": {"$ref": "participant.schema.json"}, "uniqueItems": true}, + "timeslots": {"$ref": "timeslot.schema.json"}, "info": { "type": "object", "properties": { diff --git a/schemas/solver-output.schema.json b/schemas/solver-output.schema.json index 2a15247f85c1b13a8b08a48e4fe5cb59ea30bfc9..c4a8868af02242e9e1fc789c812ac928eb520b31 100644 --- a/schemas/solver-output.schema.json +++ b/schemas/solver-output.schema.json @@ -1,11 +1,11 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "/schema/solver-output.schema.json", + "$id": "schemas/solver-output.schema.json", "type": "object", "additionalProperties": false, "required": ["input", "scheduled_aks"], "properties": { - "input": {"$ref": "/schema/solver-input.schema.json"}, + "input": {"$ref": "solver-input.schema.json"}, "scheduled_aks": { "type": "array", "items": { diff --git a/schemas/timeslot.schema.json b/schemas/timeslot.schema.json index 0240c4969741e5d5934938c7000566ef64889f13..e6d5b828a8bb12eb4cd18c829cccdd87f650c99d 100644 --- a/schemas/timeslot.schema.json +++ b/schemas/timeslot.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "/schema/timeslot.schema.json", + "$id": "schemas/timeslot.schema.json", "title": "Timeslot", "type": "object", "required": ["info", "blocks"], @@ -34,7 +34,7 @@ "description": "A single timeslot", "properties": { "id": { - "$ref": "/schema/common/id.schema.json", + "$ref": "common/id.schema.json", "description": "The unique identifier of the single timeslot. Accross all blocks, the ids must be sorted chronologically." }, "info": { @@ -47,7 +47,7 @@ "additionalProperties": false }, "fulfilled_time_constraints": { - "$ref": "/schema/common/constraints.schema.json", + "$ref": "common/constraints.schema.json", "description": "Time constraints fulfilled by this timeslot" } },