From 6eae16d475a3e7aefadce8a09e478c6bd3a978dc Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Fri, 16 Jun 2023 13:49:45 -0700 Subject: [PATCH] fix: typo in openapi documentation --- crates/tabby/src/serve/completions.rs | 2 +- website/static/openapi.json | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/tabby/src/serve/completions.rs b/crates/tabby/src/serve/completions.rs index 93c0541..dac13b6 100644 --- a/crates/tabby/src/serve/completions.rs +++ b/crates/tabby/src/serve/completions.rs @@ -20,7 +20,7 @@ mod languages; #[schema(example=json!({ "language": "python", "segments": { - "prefix": "def fib(n)\n ", + "prefix": "def fib(n):\n ", "suffix": "\n return fib(n - 1) + fib(n - 2)" } }))] diff --git a/website/static/openapi.json b/website/static/openapi.json index c179676..1ec3f38 100644 --- a/website/static/openapi.json +++ b/website/static/openapi.json @@ -112,7 +112,7 @@ "index": { "type": "integer", "format": "int32", - "minimum": 0.0 + "minimum": 0 }, "text": { "type": "string" @@ -149,7 +149,7 @@ "example": { "language": "python", "segments": { - "prefix": "def fib(n)\n ", + "prefix": "def fib(n):\n ", "suffix": "\n return fib(n - 1) + fib(n - 2)" } } @@ -210,7 +210,7 @@ "choice_index": { "type": "integer", "format": "int32", - "minimum": 0.0 + "minimum": 0 } } }, @@ -233,4 +233,4 @@ } } } -} \ No newline at end of file +}