From 1d9d744ef912ef1915b32b915c3897f139053eb3 Mon Sep 17 00:00:00 2001 From: Kirill Smelkov <kirr@nexedi.com> Date: Fri, 25 Aug 2023 21:01:19 +0300 Subject: [PATCH] . --- software/ors-amarisoft/cell-input-schema.json | 38 +++++++++++-------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/software/ors-amarisoft/cell-input-schema.json b/software/ors-amarisoft/cell-input-schema.json index 387acbd49..da96c9baf 100644 --- a/software/ors-amarisoft/cell-input-schema.json +++ b/software/ors-amarisoft/cell-input-schema.json @@ -91,7 +91,6 @@ "cell_type", "rf_mode", "bandwidth", - "tdd_ul_dl_config" if rf_mode=="tdd", "dl_nr_arfcn", "pci", "cell_id", @@ -110,20 +109,7 @@ "title": "Bandwidth", "description": "Downlink Bandwidth (in MHz)", "type": "number" - } - - if rf_mode == "tdd": - "tdd_ul_dl_config": { - "title": "TDD", - "description": "TDD", - "type": "string", - "enum": [ - "5ms 2UL 7DL 4/6 (default)", - "2.5ms 1UL 3DL 2/10", - "5ms 8UL 3DL 2/10 (maximum uplink)" - ], - "default": "5ms 2UL 7DL 4/6 (default)" - }, + }, "dl_nr_arfcn": { "title": "DL NR ARFCN", @@ -148,7 +134,29 @@ "cell_id": { "$ref": "#/$defs/cell_id" }, "ru": { "$ref": "#/$defs/ru" } + }, + + "if": { + "properties": { + "rf_mode": { + "const": "tdd" + } + } + }, + "then": { + "tdd_ul_dl_config": { + "title": "TDD", + "description": "TDD", + "type": "string", + "enum": [ + "5ms 2UL 7DL 4/6 (default)", + "2.5ms 1UL 3DL 2/10", + "5ms 8UL 3DL 2/10 (maximum uplink)" + ], + "default": "5ms 2UL 7DL 4/6 (default)" + } } + } ], -- 2.30.9