Skip to content

Commit

Permalink
chore: update openapi schema
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierDehaene committed Jun 5, 2023
1 parent 6abec14 commit 19c4182
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,8 @@
"$ref": "#/components/schemas/GenerateParameters"
},
"stream": {
"type": "boolean"
"type": "boolean",
"default": "false"
}
}
},
Expand Down Expand Up @@ -459,6 +460,10 @@
"minimum": 0.0,
"exclusiveMinimum": 0.0
},
"decoder_input_details": {
"type": "boolean",
"default": "true"
},
"details": {
"type": "boolean",
"default": "true"
Expand Down
2 changes: 1 addition & 1 deletion router/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down

0 comments on commit 19c4182

Please sign in to comment.