From e37846fcace67c211a790c59395a436326a3fe7d Mon Sep 17 00:00:00 2001 From: SanteriLoitomaa Date: Tue, 8 Sep 2026 16:31:49 +0300 Subject: [PATCH] Update ewn-schema.json --- ewn-schema.json | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/ewn-schema.json b/ewn-schema.json index bd3765d..3a5311d 100644 --- a/ewn-schema.json +++ b/ewn-schema.json @@ -4,6 +4,12 @@ "title": "Note/Warning/Error list", "description": "A list of Notes, Warnings, and Errors", "type": "object", + "properties": { + "$schema": { + "type": "string", + "description": "The schema to verify this document against." + } + }, "patternProperties": { "$schema": { "type": "string" @@ -12,9 +18,9 @@ "type": "object", "description": "A Note/Warning/Error. The name of the object is used as the unique code for this specific Note/Warning/Error.", "properties": { - "type" : { + "type": { "type": "string", - "description": "The type this Note/Warning/Error is", + "description": "The type this Note/Warning/Error is.", "enum": ["Note", "Warning", "Error", "Deprecated"] }, "desc": { @@ -25,20 +31,16 @@ "type": "integer", "description": "The \"weight\" of the Note/Warning/Error. How heavy is its impact on the validity of the output." }, - "hgl name": { - "type": ["string", "array"], - "description": "Name of the column of which's cell should be highlighted if this Note/Warning/Error is found." - }, - "hgl hex": { - "type": "string", - "description": "Hex value of the color the highlight should be." - } + "hgl name": { + "type": ["string", "array"], + "description": "Name of the column of which's cell should be highlighted if this Note/Warning/Error is found." + }, + "hgl hex": { + "type": "string", + "description": "Hex value of the color the highlight should be." + } }, - "required": [ - "type", - "desc", - "weight" - ] + "required": ["type", "desc", "weight"] } } -} \ No newline at end of file +}