From 7cb9f2f07ee61fd784e07fb2bc8fce75570c599b Mon Sep 17 00:00:00 2001 From: Zhiming Ma Date: Fri, 16 Jun 2023 18:29:28 +0800 Subject: [PATCH] docs: update website openapi json. (#245) --- website/static/openapi.json | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/website/static/openapi.json b/website/static/openapi.json index d43a02b..c179676 100644 --- a/website/static/openapi.json +++ b/website/static/openapi.json @@ -112,7 +112,7 @@ "index": { "type": "integer", "format": "int32", - "minimum": 0 + "minimum": 0.0 }, "text": { "type": "string" @@ -124,7 +124,6 @@ "properties": { "prompt": { "type": "string", - "deprecated": true, "example": "def fib(n):", "nullable": true }, @@ -141,6 +140,17 @@ } ], "nullable": true + }, + "user": { + "type": "string", + "nullable": true + } + }, + "example": { + "language": "python", + "segments": { + "prefix": "def fib(n)\n ", + "suffix": "\n return fib(n - 1) + fib(n - 2)" } } }, @@ -200,7 +210,7 @@ "choice_index": { "type": "integer", "format": "int32", - "minimum": 0 + "minimum": 0.0 } } }, @@ -212,17 +222,15 @@ "properties": { "prefix": { "type": "string", - "description": "Content that appears before the cursor in the editor window.", - "example": "def fib(n):\n " + "description": "Content that appears before the cursor in the editor window." }, "suffix": { "type": "string", "description": "Content that appears after the cursor in the editor window.", - "example": "\n return fib(n - 1) + fib(n - 2)", "nullable": true } } } } } -} +} \ No newline at end of file