From 19c41824cb11ba1a3b60a2a65274d8c074383de3 Mon Sep 17 00:00:00 2001 From: OlivierDehaene <23298448+OlivierDehaene@users.noreply.github.com> Date: Mon, 5 Jun 2023 18:16:08 +0200 Subject: [PATCH] chore: update openapi schema --- docs/openapi.json | 7 ++++++- router/src/lib.rs | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/openapi.json b/docs/openapi.json index e5ef0e3..8c65294 100644 --- a/docs/openapi.json +++ b/docs/openapi.json @@ -375,7 +375,8 @@ "$ref": "#/components/schemas/GenerateParameters" }, "stream": { - "type": "boolean" + "type": "boolean", + "default": "false" } } }, @@ -459,6 +460,10 @@ "minimum": 0.0, "exclusiveMinimum": 0.0 }, + "decoder_input_details": { + "type": "boolean", + "default": "true" + }, "details": { "type": "boolean", "default": "true" diff --git a/router/src/lib.rs b/router/src/lib.rs index 67fff01..7dff7a1 100644 --- a/router/src/lib.rs +++ b/router/src/lib.rs @@ -176,7 +176,7 @@ pub(crate) struct CompatGenerateRequest { #[serde(default = "default_parameters")] pub parameters: GenerateParameters, #[serde(default)] - #[allow(dead_code)] + #[schema(default = "false")] pub stream: bool, }