Files
schemas/error-schema.json
T

32 lines
1.2 KiB
JSON
Raw Normal View History

2026-06-22 11:34:02 +02:00
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
2026-06-22 11:37:41 +02:00
"$id": "https://santeriloitomaa.eu/Santtinen/schemas/raw/branch/main/error-schema.json",
2026-06-22 11:34:02 +02:00
"title": "Error/Warning/Note list",
2026-06-22 13:01:50 +03:00
"description": "A list of Errors, Warnings, and Notes",
2026-06-22 14:50:48 +03:00
"type" : "object",
2026-06-22 15:11:09 +03:00
"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."
2026-06-22 14:50:48 +03:00
}
2026-06-22 15:11:09 +03:00
},
"required": [
"type",
"desc",
"weight"
]
2026-06-22 14:50:48 +03:00
}
2026-06-22 13:17:28 +03:00
}
2026-06-22 11:34:02 +02:00
}