From ed4f138e51316c29655035d4fb0016638a2f8829 Mon Sep 17 00:00:00 2001 From: SanteriLoitomaa <25318539+SanteriLoitomaa@users.noreply.github.com> Date: Mon, 22 Jun 2026 15:11:09 +0300 Subject: [PATCH] Update error-schema.json --- error-schema.json | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/error-schema.json b/error-schema.json index 44e81f4..2b44409 100644 --- a/error-schema.json +++ b/error-schema.json @@ -4,23 +4,29 @@ "title": "Error/Warning/Note list", "description": "A list of Errors, Warnings, and Notes", "type" : "object", - "properties": { - "errors": { - "type":"object", - "patternProperties": { - "": { - "type" : "object", - "properties": { - "type" : { - "description": "The type this Error/Warning/Note is", - "enum": ["Error", "Warning", "Note"] - } - }, - "required": [ - "type" - ] + "patternProperties": { + "": { + "type" : "object", + "properties": { + "type" : { + "type": "string", + "description": "The type this Error/Warning/Note is", + "enum": ["Error", "Warning", "Note"] + }, + "desc": { + "type": "string", + "description": "Description of the error/warning/note given to the user. Why is this here? What needs to be fixed?" + }, + "weight": { + "type": "integer", + "description": "The \"weight\" of the error/warning/note. How heavy is its impact on the validity of the output." } - } + }, + "required": [ + "type", + "desc", + "weight" + ] } } } \ No newline at end of file