The output files should be compressed
[oam.git] / 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"
         }
       }
     }