From af2beec1249e566eaae98302d098977686a62d7b Mon Sep 17 00:00:00 2001 From: VsevolodX <79542055+VsevolodX@users.noreply.github.com> Date: Thu, 31 Aug 2023 17:27:05 -0700 Subject: [PATCH] update: refine checks schema --- schema/system/consistency_checks.json | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/schema/system/consistency_checks.json b/schema/system/consistency_checks.json index 5b5860ea6..b915754a3 100644 --- a/schema/system/consistency_checks.json +++ b/schema/system/consistency_checks.json @@ -9,28 +9,36 @@ "type": "object", "properties": { "name": { - "type": "string" + "type": "string", + "description": "Name of the consistency check which comes from an exported enum." }, "description": { - "type": "string" + "type": "string", + "description": "Description of the consistency check provided for developers." }, - "severity": { - "enum": ["info", "warning", "error"] + "keys": { + "type": "array", + "items": {} }, "arguments": { - "type": "object" + "type": "array", + "items": { + "type": "object" + }, + "description": "Arguments provided by consistency check function for message construction, specific to each check." + }, + "severity": { + "enum": ["info", "warning", "error"] }, "message": { "type": "string" - }, - "enabled": { - "type": "boolean" } }, "required": [ "name", - "severity", + "keys", "arguments", + "severity", "message" ] }