summaryrefslogtreecommitdiff
path: root/schema/json/ContextItem.json
diff options
context:
space:
mode:
authorNate Sesti <33237525+sestinj@users.noreply.github.com>2023-07-26 00:56:29 -0700
committerGitHub <noreply@github.com>2023-07-26 00:56:29 -0700
commitdef8e5612cd4c889a2e26d4152fffcf3d694abdf (patch)
treeca423625619b9d628651bcc9a395ba8f47fa03a6 /schema/json/ContextItem.json
parentb759e2dbfe36b3e8873527b9736d64866da9b604 (diff)
parentd9a4ed993aad36464776c093333af1a310e5a492 (diff)
downloadsncontinue-def8e5612cd4c889a2e26d4152fffcf3d694abdf.tar.gz
sncontinue-def8e5612cd4c889a2e26d4152fffcf3d694abdf.tar.bz2
sncontinue-def8e5612cd4c889a2e26d4152fffcf3d694abdf.zip
Merge pull request #297 from continuedev/merge-config-py-TO-main
Merge config py to main
Diffstat (limited to 'schema/json/ContextItem.json')
-rw-r--r--schema/json/ContextItem.json76
1 files changed, 76 insertions, 0 deletions
diff --git a/schema/json/ContextItem.json b/schema/json/ContextItem.json
new file mode 100644
index 00000000..32a214d3
--- /dev/null
+++ b/schema/json/ContextItem.json
@@ -0,0 +1,76 @@
+{
+ "title": "ContextItem",
+ "$ref": "#/definitions/src__continuedev__core__main__ContextItem",
+ "definitions": {
+ "ContextItemId": {
+ "title": "ContextItemId",
+ "description": "A ContextItemId is a unique identifier for a ContextItem.",
+ "type": "object",
+ "properties": {
+ "provider_title": {
+ "title": "Provider Title",
+ "type": "string"
+ },
+ "item_id": {
+ "title": "Item Id",
+ "type": "string"
+ }
+ },
+ "required": [
+ "provider_title",
+ "item_id"
+ ]
+ },
+ "ContextItemDescription": {
+ "title": "ContextItemDescription",
+ "description": "A ContextItemDescription is a description of a ContextItem that is displayed to the user when they type '@'.\n\nThe id can be used to retrieve the ContextItem from the ContextManager.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "title": "Name",
+ "type": "string"
+ },
+ "description": {
+ "title": "Description",
+ "type": "string"
+ },
+ "id": {
+ "$ref": "#/definitions/ContextItemId"
+ }
+ },
+ "required": [
+ "name",
+ "description",
+ "id"
+ ]
+ },
+ "src__continuedev__core__main__ContextItem": {
+ "title": "ContextItem",
+ "description": "A ContextItem is a single item that is stored in the ContextManager.",
+ "type": "object",
+ "properties": {
+ "description": {
+ "$ref": "#/definitions/ContextItemDescription"
+ },
+ "content": {
+ "title": "Content",
+ "type": "string"
+ },
+ "editing": {
+ "title": "Editing",
+ "default": false,
+ "type": "boolean"
+ },
+ "editable": {
+ "title": "Editable",
+ "default": false,
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "description",
+ "content"
+ ]
+ }
+ }
+} \ No newline at end of file