Update ewn-schema.json

This commit is contained in:
2026-09-08 16:31:49 +03:00
parent 7b96c18908
commit e37846fcac
+17 -15
View File
@@ -4,6 +4,12 @@
"title": "Note/Warning/Error list", "title": "Note/Warning/Error list",
"description": "A list of Notes, Warnings, and Errors", "description": "A list of Notes, Warnings, and Errors",
"type": "object", "type": "object",
"properties": {
"$schema": {
"type": "string",
"description": "The schema to verify this document against."
}
},
"patternProperties": { "patternProperties": {
"$schema": { "$schema": {
"type": "string" "type": "string"
@@ -12,9 +18,9 @@
"type": "object", "type": "object",
"description": "A Note/Warning/Error. The name of the object is used as the unique code for this specific Note/Warning/Error.", "description": "A Note/Warning/Error. The name of the object is used as the unique code for this specific Note/Warning/Error.",
"properties": { "properties": {
"type" : { "type": {
"type": "string", "type": "string",
"description": "The type this Note/Warning/Error is", "description": "The type this Note/Warning/Error is.",
"enum": ["Note", "Warning", "Error", "Deprecated"] "enum": ["Note", "Warning", "Error", "Deprecated"]
}, },
"desc": { "desc": {
@@ -25,20 +31,16 @@
"type": "integer", "type": "integer",
"description": "The \"weight\" of the Note/Warning/Error. How heavy is its impact on the validity of the output." "description": "The \"weight\" of the Note/Warning/Error. How heavy is its impact on the validity of the output."
}, },
"hgl name": { "hgl name": {
"type": ["string", "array"], "type": ["string", "array"],
"description": "Name of the column of which's cell should be highlighted if this Note/Warning/Error is found." "description": "Name of the column of which's cell should be highlighted if this Note/Warning/Error is found."
}, },
"hgl hex": { "hgl hex": {
"type": "string", "type": "string",
"description": "Hex value of the color the highlight should be." "description": "Hex value of the color the highlight should be."
} }
}, },
"required": [ "required": ["type", "desc", "weight"]
"type",
"desc",
"weight"
]
} }
} }
} }