From c9dbde4db52dc32733e183f7cf663ea5fcc3a56c Mon Sep 17 00:00:00 2001 From: Jorrit Schaap <schaap@astron.nl> Date: Fri, 26 Feb 2021 09:00:36 +0100 Subject: [PATCH] TMSS-528: removed obsolete schema --- ...mon_schema_template-optional-object-1.json | 44 ------------------- .../src/tmss/tmssapp/schemas/templates.json | 4 -- 2 files changed, 48 deletions(-) delete mode 100644 SAS/TMSS/backend/src/tmss/tmssapp/schemas/common_schema_template-optional-object-1.json diff --git a/SAS/TMSS/backend/src/tmss/tmssapp/schemas/common_schema_template-optional-object-1.json b/SAS/TMSS/backend/src/tmss/tmssapp/schemas/common_schema_template-optional-object-1.json deleted file mode 100644 index 6be55596a23..00000000000 --- a/SAS/TMSS/backend/src/tmss/tmssapp/schemas/common_schema_template-optional-object-1.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "$id": "http://tmss.lofar.org/api/schemas/commonschematemplate/optionalobject/1#", - "$schema": "http://json-schema.org/draft-06/schema#", - "title": "optionalobject", - "description": "This schema defines short hands for having an 'enabled' bool toggle the presence of other fields.", - "version": 1, - "type": "object", - "definitions": { - "enabled": { - "type": "boolean", - "title": "Enabled", - "default": true, - "options": { - "hidden": true - }, - "enum": [ - true - ] - }, - "disabled": { - "type": "boolean", - "title": "Disabled", - "default": false, - "options": { - "hidden": true - }, - "enum": [ - false - ] - }, - "disabled_object": { - "type": "object", - "additionalProperties": false, - "properties": { - "enabled": { - "$ref": "#/definitions/disabled" - } - }, - "required":[ - "enabled" - ] - } - } -} diff --git a/SAS/TMSS/backend/src/tmss/tmssapp/schemas/templates.json b/SAS/TMSS/backend/src/tmss/tmssapp/schemas/templates.json index 0e78d56ae26..480d7a4abb7 100644 --- a/SAS/TMSS/backend/src/tmss/tmssapp/schemas/templates.json +++ b/SAS/TMSS/backend/src/tmss/tmssapp/schemas/templates.json @@ -7,10 +7,6 @@ "file_name": "common_schema_template-datetime-1.json", "template": "common_schema_template" }, - { - "file_name": "common_schema_template-optional-object-1.json", - "template": "common_schema_template" - }, { "file_name": "common_schema_template-pointing-1.json", "template": "common_schema_template" -- GitLab