continue-custom/schema/json/RangeInFileWithContents.json
2023-10-29 21:01:35 -07:00

64 lines
No EOL
1.4 KiB
JSON

{
"title": "RangeInFileWithContents",
"$ref": "#/definitions/continuedev__models__filesystem__RangeInFileWithContents",
"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"
]
},
"continuedev__models__filesystem__RangeInFileWithContents": {
"title": "RangeInFileWithContents",
"description": "A range in a file with the contents of the range.",
"type": "object",
"properties": {
"filepath": {
"title": "Filepath",
"type": "string"
},
"range": {
"$ref": "#/definitions/Range"
},
"contents": {
"title": "Contents",
"type": "string"
}
},
"required": [
"filepath",
"range",
"contents"
]
}
}
}