summaryrefslogtreecommitdiff
path: root/schema/json/FileEditWithFullContents.json
blob: ad136388c8187a64c786cd9b390aa2d199d2ddbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
  "title": "FileEditWithFullContents",
  "$ref": "#/definitions/continuedev__models__filesystem_edit__FileEditWithFullContents",
  "definitions": {
    "Position": {
      "title": "Position",
      "type": "object",
      "properties": {
        "line": {
          "title": "Line",
          "type": "integer"
        },
        "character": {
          "title": "Character",
          "type": "integer"
        }
      },
      "required": [
        "line",
        "character"
      ]
    },
    "Range": {
      "title": "Range",
      "description": "A range in a file. 0-indexed.",
      "type": "object",
      "properties": {
        "start": {
          "$ref": "#/definitions/Position"
        },
        "end": {
          "$ref": "#/definitions/Position"
        }
      },
      "required": [
        "start",
        "end"
      ]
    },
    "FileEdit": {
      "title": "FileEdit",
      "type": "object",
      "properties": {
        "filepath": {
          "title": "Filepath",
          "type": "string"
        },
        "range": {
          "$ref": "#/definitions/Range"
        },
        "replacement": {
          "title": "Replacement",
          "type": "string"
        }
      },
      "required": [
        "filepath",
        "range",
        "replacement"
      ]
    },
    "continuedev__models__filesystem_edit__FileEditWithFullContents": {
      "title": "FileEditWithFullContents",
      "type": "object",
      "properties": {
        "fileEdit": {
          "$ref": "#/definitions/FileEdit"
        },
        "fileContents": {
          "title": "Filecontents",
          "type": "string"
        }
      },
      "required": [
        "fileEdit",
        "fileContents"
      ]
    }
  }
}