From bca407cff6bb9b08cd7bf150dbfbac2f47fb0333 Mon Sep 17 00:00:00 2001
From: Jorrit Schaap <schaap@astron.nl>
Date: Tue, 23 Feb 2021 20:03:55 +0100
Subject: [PATCH] TMSS-528: moved enabled into flyseye object. made all
 properties required

---
 .../task_template-beamforming_observation-1.json  | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/SAS/TMSS/backend/src/tmss/tmssapp/schemas/task_template-beamforming_observation-1.json b/SAS/TMSS/backend/src/tmss/tmssapp/schemas/task_template-beamforming_observation-1.json
index 28c435ca44e..a538d91b102 100644
--- a/SAS/TMSS/backend/src/tmss/tmssapp/schemas/task_template-beamforming_observation-1.json
+++ b/SAS/TMSS/backend/src/tmss/tmssapp/schemas/task_template-beamforming_observation-1.json
@@ -206,22 +206,25 @@
             },
             "required": ["SAPs"]
           },
-          "flys_eye_enabled": {
-            "title": "Enable Fly's Eye",
-            "type": "boolean",
-            "default": false
-          },
           "flys eye": {
             "title": "Fly's Eye Settings",
             "description": "Produce beams containing the individual station signals",
             "type": "object",
             "additionalProperties": false,
+            "default": {},
             "properties": {
               "settings": {
                 "$ref": "http://tmss.lofar.org/api/schemas/commonschematemplate/beamforming/1#/definitions/stokes_settings"
+              },
+              "enabled": {
+                "title": "Enable Fly's Eye",
+                "type": "boolean",
+                "default": false
               }
             },
-            "required": [ "settings" ]
+            "required": [
+              "settings",
+              "enabled"]
           },
           "stations": {
             "description": "Stations to beam form. Empty list = beam form all stations in the observation.",
-- 
GitLab