Files
visualization/docs/visualization-data-schema.json
github-actions-bot 353ac3d69d Updates
2021-06-19 13:47:12 +00:00

109 lines
3.4 KiB
JSON

{
"definitions": {
"MonacoTextVisualizationData": {
"type": "object",
"properties": {
"kind": {
"type": "object",
"properties": {
"text": {
"enum": [
true
]
}
},
"required": [
"text"
]
},
"text": {
"type": "string",
"description": "The text to show"
},
"decorations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"range": {
"oneOf": [
{
"$ref": "#/definitions/LineColumnRange"
}
]
},
"label": {
"type": "string"
}
},
"required": [
"range"
]
}
},
"jsonSchemas": {
"type": "array",
"items": {
"type": "object",
"properties": {
"schema": {
"description": "A json schema object that is applied when the fileName indicates a JSON document."
}
},
"required": [
"schema"
]
},
"description": "An array of schemas used to validate JSON documents."
},
"fileName": {
"type": "string",
"description": "An optional filename that might be used for chosing a syntax highlighter"
}
},
"required": [
"kind",
"text"
]
},
"LineColumnRange": {
"type": "object",
"properties": {
"start": {
"$ref": "#/definitions/LineColumnPosition",
"description": "The start position"
},
"end": {
"$ref": "#/definitions/LineColumnPosition",
"description": "The end position"
}
},
"required": [
"start",
"end"
]
},
"LineColumnPosition": {
"type": "object",
"properties": {
"line": {
"type": "number",
"description": "The 0-based line number"
},
"column": {
"type": "number",
"description": "The 0-based column number"
}
},
"required": [
"line",
"column"
]
}
},
"anyOf": [
{
"$ref": "#/definitions/MonacoTextVisualizationData"
}
]
}