From 0ff6045abf495344a92bbb97214230147aadb6fb Mon Sep 17 00:00:00 2001 From: VsevolodX <79542055+VsevolodX@users.noreply.github.com> Date: Fri, 20 Oct 2023 22:40:41 -0700 Subject: [PATCH] fix: error with reference --- schema/in_memory_entity/base.json | 1 - schema/system/consistency_check.json | 60 ++++++++++++++-------------- 2 files changed, 29 insertions(+), 32 deletions(-) diff --git a/schema/in_memory_entity/base.json b/schema/in_memory_entity/base.json index 6f7f0c7ac..d33e7dd7c 100644 --- a/schema/in_memory_entity/base.json +++ b/schema/in_memory_entity/base.json @@ -23,7 +23,6 @@ "consistency_checks": { "type": "array", "items": { - "type": "object", "$ref": "../system/consistency_check.json" } } diff --git a/schema/system/consistency_check.json b/schema/system/consistency_check.json index 3c191a5ba..e314823aa 100644 --- a/schema/system/consistency_check.json +++ b/schema/system/consistency_check.json @@ -2,36 +2,34 @@ "$id": "system/consistency-check", "$schema": "http://json-schema.org/draft-04/schema#", "title": "consistency check", - "consistency_check": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "Key of the property of the entity on which the consistency check is performed, e.g. 'basis.coordinates.1'" - }, - "name": { - "enum": [ - "default", - "atomsTooClose" - ], - "description": "Name of the consistency check which is exported as an enum" - }, - "severity": { - "enum": [ - "info", - "warning", - "error" - ] - }, - "message": { - "type": "string" - } + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Key of the property of the entity on which the consistency check is performed, e.g. 'basis.coordinates.1'" }, - "required": [ - "key", - "name", - "severity", - "message" - ] - } + "name": { + "enum": [ + "default", + "atomsTooClose" + ], + "description": "Name of the consistency check which is exported as an enum" + }, + "severity": { + "enum": [ + "info", + "warning", + "error" + ] + }, + "message": { + "type": "string" + } + }, + "required": [ + "key", + "name", + "severity", + "message" + ] }