From e3f8f6cdd71c08c7a3c2e700b6d41a29329005b4 Mon Sep 17 00:00:00 2001 From: VsevolodX <79542055+VsevolodX@users.noreply.github.com> Date: Tue, 5 Sep 2023 15:16:38 -0700 Subject: [PATCH] update: redefine CChecks as one object --- schema/system/consistency_checks.json | 36 +++++++++++---------------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/schema/system/consistency_checks.json b/schema/system/consistency_checks.json index 2c4582d1b..ee1ae2e85 100644 --- a/schema/system/consistency_checks.json +++ b/schema/system/consistency_checks.json @@ -1,13 +1,8 @@ { "$id": "system/consistency-checks", "$schema": "http://json-schema.org/draft-04/schema#", - "title": "consistency checks schema", - "properties": { - "consistency_checks": { - "type": "array", - "items": { - "type": "object", - "properties": { + "title": "consistency checks", + "properties": { "keys": { "type": "array", "items": { @@ -32,21 +27,18 @@ "message": { "type": "string" } - } - }, - "required": [ - "key", - "checkName", - "severity", - "message" - ] + }, + "required": [ + "key", + "checkName", + "severity", + "message" + ] + } } }, - "required": [ - "keys", - "messages" - ] - } + "required": [ + "keys", + "messages" + ] } - } -}