diff --git a/api/syscapCheck/sysCapSchema.json b/api/syscapCheck/sysCapSchema.json index b4c4d359718fc4d5608609167143218cce11de7f..586d6b250a500ea7a41d7a02365b7ce408973042 100644 --- a/api/syscapCheck/sysCapSchema.json +++ b/api/syscapCheck/sysCapSchema.json @@ -26,7 +26,7 @@ "properties": { "general": { "description": "core equipment", - "type":"array", + "type": "array", "items": { "type": "string", "enum": [ @@ -46,7 +46,18 @@ "description": "N equipment", "type":"array", "items": { - "type": "object" + "maxProperties": 1, + "minProperties": 1, + "type": "object", + "patternProperties": { + ".+": { + "type": "array", + "items": { + "type": "string", + "pattern": "^SystemCapability\\.[a-zA-Z0-9]+\\.[a-zA-Z0-9]+(\\.[a-zA-Z0-9]+)?$" + } + } + } } } } @@ -63,7 +74,8 @@ "addedSysCaps": { "type": "array", "items": { - "type": "string" + "type": "string", + "pattern": "^SystemCapability\\.[a-zA-Z0-9]+\\.[a-zA-Z0-9]+(\\.[a-zA-Z0-9]+)?$" } } } @@ -81,13 +93,15 @@ "addedSysCaps": { "type": "array", "items": { - "type": "string" + "type": "string", + "pattern": "^SystemCapability\\.[a-zA-Z0-9]+\\.[a-zA-Z0-9]+(\\.[a-zA-Z0-9]+)?$" } }, "removedSysCaps": { "type": "array", "items": { - "type": "string" + "type": "string", + "pattern": "^SystemCapability\\.[a-zA-Z0-9]+\\.[a-zA-Z0-9]+(\\.[a-zA-Z0-9]+)?$" } } }