github.com/mistwind/reviewdog@v0.0.0-20230322024206-9cfa11856d58/proto/rdf/jsonschema/Suggestion.jsonschema (about)

     1  {
     2      "$schema": "http://json-schema.org/draft-04/schema#",
     3      "properties": {
     4          "range": {
     5              "properties": {
     6                  "start": {
     7                      "$ref": "reviewdog.rdf.Position",
     8                      "additionalProperties": true,
     9                      "type": "object",
    10                      "description": "Required."
    11                  },
    12                  "end": {
    13                      "$ref": "reviewdog.rdf.Position",
    14                      "additionalProperties": true,
    15                      "type": "object",
    16                      "description": "end can be omitted. Then the range is handled as zero-length (start == end).\n Optional."
    17                  }
    18              },
    19              "additionalProperties": true,
    20              "type": "object",
    21              "description": "Range at which this suggestion applies.\n To insert text into a document create a range where start == end."
    22          },
    23          "text": {
    24              "type": "string",
    25              "description": "A suggested text which replace the range.\n For delete operations use an empty string."
    26          }
    27      },
    28      "additionalProperties": true,
    29      "type": "object",
    30      "description": "Suggestion represents a suggested text manipulation to resolve a diagnostic\n problem.\n\n Insert example ('hayabusa' -\u003e 'haya15busa'):\n   range {\n     start {\n       line: 1\n       column: 5\n     }\n     end {\n       line: 1\n       column: 5\n     }\n   }\n   text: 15\n |h|a|y|a|b|u|s|a|\n 1 2 3 4 5 6 7 8 9\n         ^--- insert '15'\n\n Update example ('haya15busa' -\u003e 'haya14busa'):\n   range {\n     start {\n       line: 1\n       column: 5\n     }\n     end {\n       line: 1\n       column: 7\n     }\n   }\n   text: 14\n |h|a|y|a|1|5|b|u|s|a|\n 1 2 3 4 5 6 7 8 9 0 1\n         ^---^ replace with '14'",
    31      "definitions": {
    32          "reviewdog.rdf.Position": {
    33              "$schema": "http://json-schema.org/draft-04/schema#",
    34              "properties": {
    35                  "line": {
    36                      "type": "integer",
    37                      "description": "Line number, starting at 1.\n Optional."
    38                  },
    39                  "column": {
    40                      "type": "integer",
    41                      "description": "Column number, starting at 1 (byte count in UTF-8).\n Example: 'a𐐀b'\n  The column of a: 1\n  The column of 𐐀: 2\n  The column of b: 6 since 𐐀 is represented with 4 bytes in UTF-8.\n Optional."
    42                  }
    43              },
    44              "additionalProperties": true,
    45              "type": "object",
    46              "id": "reviewdog.rdf.Position"
    47          }
    48      }
    49  }