continue-custom/schema/json/FileEditWithFullContents.json
2023-05-28 12:05:32 -04:00

80 lines
No EOL
1.7 KiB
JSON

{
"title": "FileEditWithFullContents",
"$ref": "#/definitions/src__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"
]
},
"src__continuedev__models__filesystem_edit__FileEditWithFullContents": {
"title": "FileEditWithFullContents",
"type": "object",
"properties": {
"fileEdit": {
"$ref": "#/definitions/FileEdit"
},
"fileContents": {
"title": "Filecontents",
"type": "string"
}
},
"required": [
"fileEdit",
"fileContents"
]
}
}
}