| { |
| "$schema": "http://json-schema.org/draft-04/schema#", |
| "additionalItems": false, |
| "description": "An array of diagnostics produced by the compiler", |
| "items": { |
| "properties": { |
| "category": { |
| "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", |
| "type": "string" |
| }, |
| "end_char": { |
| "description": "The character of the end position of the diagnostic's source span", |
| "type": "integer" |
| }, |
| "end_line": { |
| "description": "The line of the end position of the diagnostic's source span", |
| "type": "integer" |
| }, |
| "message": { |
| "description": "The diagnostic message, as a human consumable text string", |
| "type": "string" |
| }, |
| "path": { |
| "description": "The path of the file where the diagnostic's source span is located", |
| "type": "string" |
| }, |
| "start_char": { |
| "description": "The character of the start position of the diagnostic's source span", |
| "type": "integer" |
| }, |
| "start_line": { |
| "description": "The line of the start position of the diagnostic's source span", |
| "type": "integer" |
| } |
| }, |
| "required": [ |
| "category", |
| "message", |
| "path", |
| "start_line", |
| "start_char", |
| "end_line", |
| "end_char" |
| ], |
| "type": "object" |
| }, |
| "type": "array" |
| } |