blob: 9e520c3435c14fd5dd83f527944d2ca4bbb9079d [file] [log] [blame]
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "An array of diagnostics produced by the compiler",
"type": "array",
"items": {
"type": "object",
"required": [
"category",
"message",
"path",
"start_line",
"start_char",
"end_line",
"end_char"
],
"properties": {
"category": {
"type": "string",
"description": "Category of the diagnostic, encoded as a path with the analyzer name as the root, followed by an arbitrary number of subcategories. Currently, always fidlc/{error, warning}, but could include a different analyzer (e.g. fidl-lint) and a further subcategory for error code/identifier in the future"
},
"message": {
"type": "string",
"description": "The diagnostic message, as a human consumable text string"
},
"path": {
"type": "string",
"description": "The path of the file where the diagnostic's source span is located"
},
"start_line": {
"type": "integer",
"description": "The line of the start position of the diagnostic's source span"
},
"start_char": {
"type": "integer",
"description": "The character of the start position of the diagnostic's source span"
},
"end_line": {
"type": "integer",
"description": "The line of the end position of the diagnostic's source span"
},
"end_char": {
"type": "integer",
"description": "The character of the end position of the diagnostic's source span"
}
}
},
"additionalItems": false
}