The output files should be compressed 68/12368/1
authorMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Sun, 17 Dec 2023 12:50:35 +0000 (13:50 +0100)
committerMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Sun, 17 Dec 2023 12:51:03 +0000 (13:51 +0100)
- config schema changed to allow file compression

Issue-ID: OAM-394
Change-Id: I549a4ba4b62a5955f651e535439d3a5f4119b7f9
Signed-off-by: Martin Skorupski <martin.skorupski@highstreet-technologies.com>
code/network-generator/network_generation/model/jsonSchema/configuration.schema.json

index d7970c4..e2fb5fd 100644 (file)
         }
       }
     },
+    "export": {
+      "title": "export",
+      "type": "object",
+      "required": [
+        "enabled",
+        "compressed"
+      ],
+      "additionalProperties": false,
+      "properties": {
+        "enabled": {
+          "description": "If true, an export file is created.",
+          "type": "boolean"
+        },
+        "compressed": {
+          "description": "If true, the export file is stored in a compressed format.",
+          "type": "boolean"
+        }
+      }
+    },
     "generationTasks": {
       "title": "generationTasks",
       "type": "object",
       "additionalProperties": false,
       "properties": {
         "topology": {
-          "description": "If true, an ietf-network-topology file will be generated.",
-          "type": "boolean"
+          "description": "If enabled, an ietf-network-topology file will be generated.",
+          "$ref": "#/$defs/export"
         },
         "svg": {
-          "description": "If true, a kml file will be generated.",
-          "type": "boolean"
+          "description": "If enabled, a svg file will be generated.",
+          "$ref": "#/$defs/export"
         },
         "kml": {
-          "description": "If true, a svg file will be generated.",
-          "type": "boolean"
+          "description": "If enabled, a kml file will be generated.",
+          "$ref": "#/$defs/export"
         }
       }
     }