From 27772b9f2bc06770b7c0cb288e3afd0945afc1fe Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sat, 20 Jul 2024 10:39:42 -0700 Subject: [PATCH] update config schema files --- docs/static/schemas/config.json | 50 ++++++++++++++++++- .../src/main/resources/config_schema.json | 50 ++++++++++++++++++- extensions/vscode/continue_rc_schema.json | 49 ++++++++++++++++++ 3 files changed, 145 insertions(+), 4 deletions(-) diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index 19813eb6a..ac7461d8f 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -1395,6 +1395,46 @@ } }, "allOf": [ + { + "if": { + "properties": { + "name": { + "enum": ["docs"] + } + } + }, + "then": { + "properties": { + "params": { + "properties": { + "sites": { + "type": "array", + "items": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "startUrl": { + "type": "string" + }, + "rootUrl": { + "type": "string" + }, + "maxDepth": { + "type": "integer" + } + }, + "required": ["title", "startUrl"] + } + } + }, + "required": ["sites"] + } + }, + "required": ["params"] + } + }, { "if": { "properties": { @@ -1955,7 +1995,13 @@ "type": "object", "properties": { "name": { - "enum": ["cohere", "voyage", "llm", "free-trial", "huggingface-tei"] + "enum": [ + "cohere", + "voyage", + "llm", + "free-trial", + "huggingface-tei" + ] }, "params": { "type": "object" @@ -2070,7 +2116,7 @@ "default": false }, "truncation_direction": { - "enum": ["Right","Left"], + "enum": ["Right", "Left"], "markdownDescription": "Wether to truncate sequences from the `left` or `right`.", "default": "Right" } diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index 19813eb6a..ac7461d8f 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -1395,6 +1395,46 @@ } }, "allOf": [ + { + "if": { + "properties": { + "name": { + "enum": ["docs"] + } + } + }, + "then": { + "properties": { + "params": { + "properties": { + "sites": { + "type": "array", + "items": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "startUrl": { + "type": "string" + }, + "rootUrl": { + "type": "string" + }, + "maxDepth": { + "type": "integer" + } + }, + "required": ["title", "startUrl"] + } + } + }, + "required": ["sites"] + } + }, + "required": ["params"] + } + }, { "if": { "properties": { @@ -1955,7 +1995,13 @@ "type": "object", "properties": { "name": { - "enum": ["cohere", "voyage", "llm", "free-trial", "huggingface-tei"] + "enum": [ + "cohere", + "voyage", + "llm", + "free-trial", + "huggingface-tei" + ] }, "params": { "type": "object" @@ -2070,7 +2116,7 @@ "default": false }, "truncation_direction": { - "enum": ["Right","Left"], + "enum": ["Right", "Left"], "markdownDescription": "Wether to truncate sequences from the `left` or `right`.", "default": "Right" } diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index e1da75f39..2c67ce0c1 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -1541,6 +1541,55 @@ } }, "allOf": [ + { + "if": { + "properties": { + "name": { + "enum": [ + "docs" + ] + } + } + }, + "then": { + "properties": { + "params": { + "properties": { + "sites": { + "type": "array", + "items": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "startUrl": { + "type": "string" + }, + "rootUrl": { + "type": "string" + }, + "maxDepth": { + "type": "integer" + } + }, + "required": [ + "title", + "startUrl" + ] + } + } + }, + "required": [ + "sites" + ] + } + }, + "required": [ + "params" + ] + } + }, { "if": { "properties": {