From 7458bc6a960f4c548bf8c534fb42d9a2194e30d6 Mon Sep 17 00:00:00 2001 From: Martin Skorupski Date: Sun, 17 Dec 2023 13:50:35 +0100 Subject: [PATCH] The output files should be compressed - config schema changed to allow file compression Issue-ID: OAM-394 Change-Id: I549a4ba4b62a5955f651e535439d3a5f4119b7f9 Signed-off-by: Martin Skorupski --- .../model/jsonSchema/configuration.schema.json | 31 +++++++++++++++++----- 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/code/network-generator/network_generation/model/jsonSchema/configuration.schema.json b/code/network-generator/network_generation/model/jsonSchema/configuration.schema.json index d7970c4..e2fb5fd 100644 --- a/code/network-generator/network_generation/model/jsonSchema/configuration.schema.json +++ b/code/network-generator/network_generation/model/jsonSchema/configuration.schema.json @@ -273,6 +273,25 @@ } } }, + "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", @@ -284,16 +303,16 @@ "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" } } } -- 2.16.6