From cef6bbe28d60c133b565127e5ed701176e34e8f4 Mon Sep 17 00:00:00 2001 From: SanteriLoitomaa <25318539+SanteriLoitomaa@users.noreply.github.com> Date: Mon, 22 Jun 2026 14:50:48 +0300 Subject: [PATCH] Update error-schema.json --- error-schema.json | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/error-schema.json b/error-schema.json index f99a10c..44e81f4 100644 --- a/error-schema.json +++ b/error-schema.json @@ -3,17 +3,24 @@ "$id": "https://santeriloitomaa.eu/Santtinen/schemas/raw/branch/main/error-schema.json", "title": "Error/Warning/Note list", "description": "A list of Errors, Warnings, and Notes", - "type" : "array", - "items": { - "type" : "object", - "properties": { - "type" : { - "description": "The type this Error/Warning/Note is", - "enum": ["Error", "Warning", "Note"] + "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" + ] + } } - }, - "required": [ - "type" - ] + } } } \ No newline at end of file