forked from loafle/openapi-generator-original
[Rust Server] Support parameters correctly in response headers (#3669)
[Rust Server] Compile responses with headers * Add test for response with headers * Update samples
This commit is contained in:
committed by
GitHub
parent
9647416032
commit
4538db92a2
@@ -53,31 +53,34 @@ pub const API_VERSION: &'static str = "2.3.4";
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub enum DummyGetResponse {
|
||||
/// Success
|
||||
Success ,
|
||||
Success
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub enum DummyPutResponse {
|
||||
/// Success
|
||||
Success ,
|
||||
Success
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub enum FileResponseGetResponse {
|
||||
/// Success
|
||||
Success ( swagger::ByteArray ) ,
|
||||
Success
|
||||
(swagger::ByteArray)
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub enum HtmlPostResponse {
|
||||
/// Success
|
||||
Success ( String ) ,
|
||||
Success
|
||||
(String)
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub enum RawJsonGetResponse {
|
||||
/// Success
|
||||
Success ( serde_json::Value ) ,
|
||||
Success
|
||||
(serde_json::Value)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user