Files
schemas/ewn-schema.json
T

47 lines
1.9 KiB
JSON
Raw Normal View History

2026-06-22 15:05:15 +02:00
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
2026-06-22 15:19:18 +02:00
"$id": "https://santeriloitomaa.eu/SanteriLoitomaa/schemas/raw/branch/main/ewn-schema.json",
2026-07-08 23:12:08 +03:00
"title": "Note/Warning/Error list",
"description": "A list of Notes, Warnings, and Errors",
2026-06-22 15:05:15 +02:00
"type": "object",
2026-09-08 16:31:49 +03:00
"properties": {
"$schema": {
"type": "string",
"description": "The schema to verify this document against."
}
},
2026-06-22 15:05:15 +02:00
"patternProperties": {
2026-09-08 14:58:48 +02:00
"$schema": {
"type": "string"
},
2026-06-22 15:05:15 +02:00
"": {
"type": "object",
2026-07-08 23:12:08 +03:00
"description": "A Note/Warning/Error. The name of the object is used as the unique code for this specific Note/Warning/Error.",
2026-06-22 15:05:15 +02:00
"properties": {
2026-09-08 16:31:49 +03:00
"type": {
2026-06-22 15:05:15 +02:00
"type": "string",
2026-09-08 16:31:49 +03:00
"description": "The type this Note/Warning/Error is.",
2026-07-08 23:12:08 +03:00
"enum": ["Note", "Warning", "Error", "Deprecated"]
2026-06-22 15:05:15 +02:00
},
"desc": {
"type": "string",
2026-07-08 23:12:08 +03:00
"description": "Description of the Note/Warning/Error given to the user. Why is this here? What needs to be fixed?"
2026-06-22 15:05:15 +02:00
},
"weight": {
"type": "integer",
2026-07-08 23:12:08 +03:00
"description": "The \"weight\" of the Note/Warning/Error. How heavy is its impact on the validity of the output."
},
2026-09-08 16:31:49 +03:00
"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."
}
2026-06-22 15:05:15 +02:00
},
2026-09-08 16:31:49 +03:00
"required": ["type", "desc", "weight"]
2026-06-22 15:05:15 +02:00
}
}
2026-09-08 16:31:49 +03:00
}