Update error-schema.json
This commit is contained in:
+12
-6
@@ -3,24 +3,30 @@
|
|||||||
"$id": "https://santeriloitomaa.eu/Santtinen/schemas/raw/branch/main/error-schema.json",
|
"$id": "https://santeriloitomaa.eu/Santtinen/schemas/raw/branch/main/error-schema.json",
|
||||||
"title": "Error/Warning/Note list",
|
"title": "Error/Warning/Note list",
|
||||||
"description": "A list of Errors, Warnings, and Notes",
|
"description": "A list of Errors, Warnings, and Notes",
|
||||||
"type" : "object",
|
|
||||||
"properties": {
|
|
||||||
"errors": {
|
|
||||||
"type" : "object",
|
"type" : "object",
|
||||||
"patternProperties": {
|
"patternProperties": {
|
||||||
"": {
|
"": {
|
||||||
"type" : "object",
|
"type" : "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"type" : {
|
"type" : {
|
||||||
|
"type": "string",
|
||||||
"description": "The type this Error/Warning/Note is",
|
"description": "The type this Error/Warning/Note is",
|
||||||
"enum": ["Error", "Warning", "Note"]
|
"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": [
|
"required": [
|
||||||
"type"
|
"type",
|
||||||
|
"desc",
|
||||||
|
"weight"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user