From 63114641a7b62f47baf95bbb5b84f698a7b18f83 Mon Sep 17 00:00:00 2001 From: Ivan Chvets Date: Thu, 4 Dec 2025 16:08:54 -0500 Subject: [PATCH] fix: Schema sync https://telecominfraproject.atlassian.net/browse/WIFI-15257 Signed-off-by: Ivan Chvets --- src/framework/ConfigurationValidator.cpp | 46 +++++++++++------------- 1 file changed, 20 insertions(+), 26 deletions(-) diff --git a/src/framework/ConfigurationValidator.cpp b/src/framework/ConfigurationValidator.cpp index de15168e..7f310fc2 100644 --- a/src/framework/ConfigurationValidator.cpp +++ b/src/framework/ConfigurationValidator.cpp @@ -377,21 +377,18 @@ static std::string DefaultAPSchema = R"foo( "properties": { "port-mirror": { "description": "Enable mirror of traffic from multiple minotor ports to a single analysis port.", - "type": "array", - "items": { - "type": "object", - "properties": { - "monitor-ports": { - "description": "The list of ports that we want to mirror.", - "type": "array", - "items": { - "type": "string" - } - }, - "analysis-port": { - "description": "The port that mirror'ed packets should be sent to.", + "type": "object", + "properties": { + "monitor-ports": { + "description": "The list of ports that we want to mirror.", + "type": "array", + "items": { "type": "string" } + }, + "analysis-port": { + "description": "The port that mirror'ed packets should be sent to.", + "type": "string" } } }, @@ -4672,21 +4669,18 @@ static std::string DefaultSWITCHSchema = R"foo( "properties": { "port-mirror": { "description": "Enable mirror of traffic from multiple minotor ports to a single analysis port.", - "type": "array", - "items": { - "type": "object", - "properties": { - "monitor-ports": { - "description": "The list of ports that we want to mirror.", - "type": "array", - "items": { - "type": "string" - } - }, - "analysis-port": { - "description": "The port that mirror'ed packets should be sent to.", + "type": "object", + "properties": { + "monitor-ports": { + "description": "The list of ports that we want to mirror.", + "type": "array", + "items": { "type": "string" } + }, + "analysis-port": { + "description": "The port that mirror'ed packets should be sent to.", + "type": "string" } } },