forked from loafle/openapi-generator-original
[Rust] [Axum] Fix clippy warning: to_string_trait_impl (#17995)
* [Rust] [Axum] Fix clippy warning * Using Display trait
This commit is contained in:
parent
d3ebb0a52b
commit
cdf8973999
@ -387,9 +387,9 @@ impl std::convert::From<{{{dataType}}}> for {{{classname}}} {
|
||||
}
|
||||
{{#vendorExtensions.x-is-string}}
|
||||
|
||||
impl std::string::ToString for {{{classname}}} {
|
||||
fn to_string(&self) -> String {
|
||||
self.0.to_string()
|
||||
impl std::fmt::Display for {{{classname}}} {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "{:?}", self.0)
|
||||
}
|
||||
}
|
||||
|
||||
@ -424,10 +424,10 @@ impl std::ops::DerefMut for {{{classname}}} {
|
||||
/// Converts the {{{classname}}} value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl ::std::string::ToString for {{{classname}}} {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for {{{classname}}} {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
// Skipping additionalProperties in query parameter serialization
|
||||
"".to_string()
|
||||
write!(f, "")
|
||||
}
|
||||
}
|
||||
|
||||
@ -517,9 +517,9 @@ impl std::ops::DerefMut for {{{classname}}} {
|
||||
/// Converts the {{{classname}}} value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for {{{classname}}} {
|
||||
fn to_string(&self) -> String {
|
||||
self.iter().map(|x| x.to_string()).collect::<Vec<_>>().join(",")
|
||||
impl std::fmt::Display for {{{classname}}} {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "{}", self.iter().map(|x| x.to_string()).collect::<Vec<_>>().join(","))
|
||||
}
|
||||
}
|
||||
|
||||
@ -726,8 +726,8 @@ impl {{{classname}}} {
|
||||
/// Converts the {{{classname}}} value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for {{{classname}}} {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for {{{classname}}} {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
{{#vars}}
|
||||
{{#isByteArray}}
|
||||
@ -789,7 +789,7 @@ impl std::string::ToString for {{{classname}}} {
|
||||
{{/vars}}
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(f, "{}", params.into_iter().flatten().collect::<Vec<_>>().join(","))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1 +1 @@
|
||||
7.3.0-SNAPSHOT
|
||||
7.4.0-SNAPSHOT
|
||||
|
@ -36,8 +36,8 @@ impl MultipartRelatedRequest {
|
||||
/// Converts the MultipartRelatedRequest value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for MultipartRelatedRequest {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for MultipartRelatedRequest {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
// Skipping object_field in query parameter serialization
|
||||
|
||||
@ -49,7 +49,11 @@ impl std::string::ToString for MultipartRelatedRequest {
|
||||
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -184,8 +188,8 @@ impl MultipartRequestObjectField {
|
||||
/// Converts the MultipartRequestObjectField value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for MultipartRequestObjectField {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for MultipartRequestObjectField {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
Some("field_a".to_string()),
|
||||
Some(self.field_a.to_string()),
|
||||
@ -202,7 +206,11 @@ impl std::string::ToString for MultipartRequestObjectField {
|
||||
}),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -333,8 +341,8 @@ impl MultipleIdenticalMimeTypesPostRequest {
|
||||
/// Converts the MultipleIdenticalMimeTypesPostRequest value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for MultipleIdenticalMimeTypesPostRequest {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for MultipleIdenticalMimeTypesPostRequest {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
// Skipping binary1 in query parameter serialization
|
||||
// Skipping binary1 in query parameter serialization
|
||||
@ -344,7 +352,11 @@ impl std::string::ToString for MultipleIdenticalMimeTypesPostRequest {
|
||||
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1 +1 @@
|
||||
7.3.0-SNAPSHOT
|
||||
7.4.0-SNAPSHOT
|
||||
|
@ -124,10 +124,10 @@ impl std::ops::DerefMut for AdditionalPropertiesWithList {
|
||||
/// Converts the AdditionalPropertiesWithList value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl ::std::string::ToString for AdditionalPropertiesWithList {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for AdditionalPropertiesWithList {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
// Skipping additionalProperties in query parameter serialization
|
||||
"".to_string()
|
||||
write!(f, "")
|
||||
}
|
||||
}
|
||||
|
||||
@ -215,12 +215,16 @@ impl std::ops::DerefMut for AnotherXmlArray {
|
||||
/// Converts the AnotherXmlArray value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for AnotherXmlArray {
|
||||
fn to_string(&self) -> String {
|
||||
self.iter()
|
||||
.map(|x| x.to_string())
|
||||
.collect::<Vec<_>>()
|
||||
.join(",")
|
||||
impl std::fmt::Display for AnotherXmlArray {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
self.iter()
|
||||
.map(|x| x.to_string())
|
||||
.collect::<Vec<_>>()
|
||||
.join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -300,9 +304,9 @@ impl std::convert::From<String> for AnotherXmlInner {
|
||||
}
|
||||
}
|
||||
|
||||
impl std::string::ToString for AnotherXmlInner {
|
||||
fn to_string(&self) -> String {
|
||||
self.0.to_string()
|
||||
impl std::fmt::Display for AnotherXmlInner {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "{:?}", self.0)
|
||||
}
|
||||
}
|
||||
|
||||
@ -352,14 +356,18 @@ impl AnotherXmlObject {
|
||||
/// Converts the AnotherXmlObject value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for AnotherXmlObject {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for AnotherXmlObject {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![self
|
||||
.inner_string
|
||||
.as_ref()
|
||||
.map(|inner_string| ["inner_string".to_string(), inner_string.to_string()].join(","))];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -549,8 +557,8 @@ impl AnyOfProperty {
|
||||
/// Converts the AnyOfProperty value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for AnyOfProperty {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for AnyOfProperty {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
// Skipping requiredAnyOf in query parameter serialization
|
||||
|
||||
@ -558,7 +566,11 @@ impl std::string::ToString for AnyOfProperty {
|
||||
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -701,8 +713,8 @@ impl DuplicateXmlObject {
|
||||
/// Converts the DuplicateXmlObject value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for DuplicateXmlObject {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for DuplicateXmlObject {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.inner_string.as_ref().map(|inner_string| {
|
||||
["inner_string".to_string(), inner_string.to_string()].join(",")
|
||||
@ -710,7 +722,11 @@ impl std::string::ToString for DuplicateXmlObject {
|
||||
// Skipping inner_array in query parameter serialization
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -884,9 +900,9 @@ impl std::convert::From<String> for Err {
|
||||
}
|
||||
}
|
||||
|
||||
impl std::string::ToString for Err {
|
||||
fn to_string(&self) -> String {
|
||||
self.0.to_string()
|
||||
impl std::fmt::Display for Err {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "{:?}", self.0)
|
||||
}
|
||||
}
|
||||
|
||||
@ -932,9 +948,9 @@ impl std::convert::From<String> for Error {
|
||||
}
|
||||
}
|
||||
|
||||
impl std::string::ToString for Error {
|
||||
fn to_string(&self) -> String {
|
||||
self.0.to_string()
|
||||
impl std::fmt::Display for Error {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "{:?}", self.0)
|
||||
}
|
||||
}
|
||||
|
||||
@ -1012,14 +1028,18 @@ impl MultigetGet201Response {
|
||||
/// Converts the MultigetGet201Response value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for MultigetGet201Response {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for MultigetGet201Response {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![self
|
||||
.foo
|
||||
.as_ref()
|
||||
.map(|foo| ["foo".to_string(), foo.to_string()].join(","))];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -1230,12 +1250,16 @@ impl std::ops::DerefMut for MyIdList {
|
||||
/// Converts the MyIdList value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for MyIdList {
|
||||
fn to_string(&self) -> String {
|
||||
self.iter()
|
||||
.map(|x| x.to_string())
|
||||
.collect::<Vec<_>>()
|
||||
.join(",")
|
||||
impl std::fmt::Display for MyIdList {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
self.iter()
|
||||
.map(|x| x.to_string())
|
||||
.collect::<Vec<_>>()
|
||||
.join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -1364,8 +1388,8 @@ impl NullableTest {
|
||||
/// Converts the NullableTest value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for NullableTest {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for NullableTest {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
Some("nullable".to_string()),
|
||||
Some(
|
||||
@ -1453,7 +1477,11 @@ impl std::string::ToString for NullableTest {
|
||||
}),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -1642,8 +1670,8 @@ impl ObjectHeader {
|
||||
/// Converts the ObjectHeader value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for ObjectHeader {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for ObjectHeader {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
Some("requiredObjectHeader".to_string()),
|
||||
Some(self.required_object_header.to_string()),
|
||||
@ -1658,7 +1686,11 @@ impl std::string::ToString for ObjectHeader {
|
||||
}),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -1797,8 +1829,8 @@ impl ObjectParam {
|
||||
/// Converts the ObjectParam value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for ObjectParam {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for ObjectParam {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
Some("requiredParam".to_string()),
|
||||
Some(self.required_param.to_string()),
|
||||
@ -1807,7 +1839,11 @@ impl std::string::ToString for ObjectParam {
|
||||
}),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -1958,8 +1994,8 @@ impl ObjectUntypedProps {
|
||||
/// Converts the ObjectUntypedProps value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for ObjectUntypedProps {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for ObjectUntypedProps {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
// Skipping required_untyped in query parameter serialization
|
||||
|
||||
@ -1971,7 +2007,11 @@ impl std::string::ToString for ObjectUntypedProps {
|
||||
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -2108,8 +2148,8 @@ impl ObjectWithArrayOfObjects {
|
||||
/// Converts the ObjectWithArrayOfObjects value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for ObjectWithArrayOfObjects {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for ObjectWithArrayOfObjects {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![self.object_array.as_ref().map(|object_array| {
|
||||
[
|
||||
"objectArray".to_string(),
|
||||
@ -2122,7 +2162,11 @@ impl std::string::ToString for ObjectWithArrayOfObjects {
|
||||
.join(",")
|
||||
})];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -2236,9 +2280,9 @@ impl std::convert::From<String> for Ok {
|
||||
}
|
||||
}
|
||||
|
||||
impl std::string::ToString for Ok {
|
||||
fn to_string(&self) -> String {
|
||||
self.0.to_string()
|
||||
impl std::fmt::Display for Ok {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "{:?}", self.0)
|
||||
}
|
||||
}
|
||||
|
||||
@ -2383,9 +2427,9 @@ impl std::convert::From<String> for Result {
|
||||
}
|
||||
}
|
||||
|
||||
impl std::string::ToString for Result {
|
||||
fn to_string(&self) -> String {
|
||||
self.0.to_string()
|
||||
impl std::fmt::Display for Result {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "{:?}", self.0)
|
||||
}
|
||||
}
|
||||
|
||||
@ -2468,9 +2512,9 @@ impl std::convert::From<String> for StringObject {
|
||||
}
|
||||
}
|
||||
|
||||
impl std::string::ToString for StringObject {
|
||||
fn to_string(&self) -> String {
|
||||
self.0.to_string()
|
||||
impl std::fmt::Display for StringObject {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "{:?}", self.0)
|
||||
}
|
||||
}
|
||||
|
||||
@ -2607,12 +2651,16 @@ impl std::ops::DerefMut for XmlArray {
|
||||
/// Converts the XmlArray value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for XmlArray {
|
||||
fn to_string(&self) -> String {
|
||||
self.iter()
|
||||
.map(|x| x.to_string())
|
||||
.collect::<Vec<_>>()
|
||||
.join(",")
|
||||
impl std::fmt::Display for XmlArray {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
self.iter()
|
||||
.map(|x| x.to_string())
|
||||
.collect::<Vec<_>>()
|
||||
.join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -2692,9 +2740,9 @@ impl std::convert::From<String> for XmlInner {
|
||||
}
|
||||
}
|
||||
|
||||
impl std::string::ToString for XmlInner {
|
||||
fn to_string(&self) -> String {
|
||||
self.0.to_string()
|
||||
impl std::fmt::Display for XmlInner {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "{:?}", self.0)
|
||||
}
|
||||
}
|
||||
|
||||
@ -2751,8 +2799,8 @@ impl XmlObject {
|
||||
/// Converts the XmlObject value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for XmlObject {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for XmlObject {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.inner_string.as_ref().map(|inner_string| {
|
||||
["innerString".to_string(), inner_string.to_string()].join(",")
|
||||
@ -2766,7 +2814,11 @@ impl std::string::ToString for XmlObject {
|
||||
}),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1 +1 @@
|
||||
7.3.0-SNAPSHOT
|
||||
7.4.0-SNAPSHOT
|
||||
|
@ -1 +1 @@
|
||||
7.3.0-SNAPSHOT
|
||||
7.4.0-SNAPSHOT
|
||||
|
@ -177,8 +177,8 @@ impl AdditionalPropertiesClass {
|
||||
/// Converts the AdditionalPropertiesClass value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for AdditionalPropertiesClass {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for AdditionalPropertiesClass {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
// Skipping map_property in query parameter serialization
|
||||
|
||||
@ -187,7 +187,11 @@ impl std::string::ToString for AdditionalPropertiesClass {
|
||||
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -313,8 +317,8 @@ impl Animal {
|
||||
/// Converts the Animal value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for Animal {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for Animal {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
Some("className".to_string()),
|
||||
Some(self.class_name.to_string()),
|
||||
@ -323,7 +327,11 @@ impl std::string::ToString for Animal {
|
||||
.map(|color| ["color".to_string(), color.to_string()].join(",")),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -509,12 +517,16 @@ impl std::ops::DerefMut for AnimalFarm {
|
||||
/// Converts the AnimalFarm value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for AnimalFarm {
|
||||
fn to_string(&self) -> String {
|
||||
self.iter()
|
||||
.map(|x| x.to_string())
|
||||
.collect::<Vec<_>>()
|
||||
.join(",")
|
||||
impl std::fmt::Display for AnimalFarm {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
self.iter()
|
||||
.map(|x| x.to_string())
|
||||
.collect::<Vec<_>>()
|
||||
.join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -608,8 +620,8 @@ impl ApiResponse {
|
||||
/// Converts the ApiResponse value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for ApiResponse {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for ApiResponse {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.code
|
||||
.as_ref()
|
||||
@ -622,7 +634,11 @@ impl std::string::ToString for ApiResponse {
|
||||
.map(|message| ["message".to_string(), message.to_string()].join(",")),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -759,14 +775,18 @@ impl ArrayOfArrayOfNumberOnly {
|
||||
/// Converts the ArrayOfArrayOfNumberOnly value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for ArrayOfArrayOfNumberOnly {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for ArrayOfArrayOfNumberOnly {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
// Skipping ArrayArrayNumber in query parameter serialization
|
||||
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -882,8 +902,8 @@ impl ArrayOfNumberOnly {
|
||||
/// Converts the ArrayOfNumberOnly value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for ArrayOfNumberOnly {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for ArrayOfNumberOnly {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![self.array_number.as_ref().map(|array_number| {
|
||||
[
|
||||
"ArrayNumber".to_string(),
|
||||
@ -896,7 +916,11 @@ impl std::string::ToString for ArrayOfNumberOnly {
|
||||
.join(",")
|
||||
})];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -1037,8 +1061,8 @@ impl ArrayTest {
|
||||
/// Converts the ArrayTest value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for ArrayTest {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for ArrayTest {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.array_of_string.as_ref().map(|array_of_string| {
|
||||
[
|
||||
@ -1067,7 +1091,11 @@ impl std::string::ToString for ArrayTest {
|
||||
}),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -1244,8 +1272,8 @@ impl Capitalization {
|
||||
/// Converts the Capitalization value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for Capitalization {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for Capitalization {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.small_camel
|
||||
.as_ref()
|
||||
@ -1273,7 +1301,11 @@ impl std::string::ToString for Capitalization {
|
||||
.map(|att_name| ["ATT_NAME".to_string(), att_name.to_string()].join(",")),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -1437,8 +1469,8 @@ impl Cat {
|
||||
/// Converts the Cat value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for Cat {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for Cat {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
Some("className".to_string()),
|
||||
Some(self.class_name.to_string()),
|
||||
@ -1450,7 +1482,11 @@ impl std::string::ToString for Cat {
|
||||
.map(|declawed| ["declawed".to_string(), declawed.to_string()].join(",")),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -1590,8 +1626,8 @@ impl Category {
|
||||
/// Converts the Category value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for Category {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for Category {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.id
|
||||
.as_ref()
|
||||
@ -1601,7 +1637,11 @@ impl std::string::ToString for Category {
|
||||
.map(|name| ["name".to_string(), name.to_string()].join(",")),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -1732,14 +1772,18 @@ impl ClassModel {
|
||||
/// Converts the ClassModel value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for ClassModel {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for ClassModel {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![self
|
||||
._class
|
||||
.as_ref()
|
||||
.map(|_class| ["_class".to_string(), _class.to_string()].join(","))];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -1862,14 +1906,18 @@ impl Client {
|
||||
/// Converts the Client value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for Client {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for Client {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![self
|
||||
.client
|
||||
.as_ref()
|
||||
.map(|client| ["client".to_string(), client.to_string()].join(","))];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -2003,8 +2051,8 @@ impl Dog {
|
||||
/// Converts the Dog value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for Dog {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for Dog {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
Some("className".to_string()),
|
||||
Some(self.class_name.to_string()),
|
||||
@ -2016,7 +2064,11 @@ impl std::string::ToString for Dog {
|
||||
.map(|breed| ["breed".to_string(), breed.to_string()].join(",")),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -2151,8 +2203,8 @@ impl DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket {
|
||||
/// Converts the DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for DollarSpecialLeftSquareBracketModelPeriodNameRightSquareBracket {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
|
||||
self.dollar_special_left_square_bracket_property_period_name_right_square_bracket.as_ref().map(|dollar_special_left_square_bracket_property_period_name_right_square_bracket| {
|
||||
@ -2164,7 +2216,11 @@ impl std::string::ToString for DollarSpecialLeftSquareBracketModelPeriodNameRigh
|
||||
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -2296,8 +2352,8 @@ impl EnumArrays {
|
||||
/// Converts the EnumArrays value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for EnumArrays {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for EnumArrays {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.just_symbol
|
||||
.as_ref()
|
||||
@ -2316,7 +2372,11 @@ impl std::string::ToString for EnumArrays {
|
||||
// Skipping array_array_enum in query parameter serialization
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -2521,8 +2581,8 @@ impl EnumTest {
|
||||
/// Converts the EnumTest value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for EnumTest {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for EnumTest {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.enum_string
|
||||
.as_ref()
|
||||
@ -2538,7 +2598,11 @@ impl std::string::ToString for EnumTest {
|
||||
// Skipping outerEnum in query parameter serialization
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -2776,8 +2840,8 @@ impl FormatTest {
|
||||
/// Converts the FormatTest value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for FormatTest {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for FormatTest {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.integer
|
||||
.as_ref()
|
||||
@ -2814,7 +2878,11 @@ impl std::string::ToString for FormatTest {
|
||||
Some(self.password.to_string()),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -3039,8 +3107,8 @@ impl HasOnlyReadOnly {
|
||||
/// Converts the HasOnlyReadOnly value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for HasOnlyReadOnly {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for HasOnlyReadOnly {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.bar
|
||||
.as_ref()
|
||||
@ -3050,7 +3118,11 @@ impl std::string::ToString for HasOnlyReadOnly {
|
||||
.map(|foo| ["foo".to_string(), foo.to_string()].join(",")),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -3181,14 +3253,18 @@ impl List {
|
||||
/// Converts the List value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for List {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for List {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![self
|
||||
.param_123_list
|
||||
.as_ref()
|
||||
.map(|param_123_list| ["123-list".to_string(), param_123_list.to_string()].join(","))];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -3323,8 +3399,8 @@ impl MapTest {
|
||||
/// Converts the MapTest value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for MapTest {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for MapTest {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
// Skipping map_map_of_string in query parameter serialization
|
||||
// Skipping map_map_of_string in query parameter serialization
|
||||
@ -3336,7 +3412,11 @@ impl std::string::ToString for MapTest {
|
||||
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -3491,8 +3571,8 @@ impl MixedPropertiesAndAdditionalPropertiesClass {
|
||||
/// Converts the MixedPropertiesAndAdditionalPropertiesClass value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for MixedPropertiesAndAdditionalPropertiesClass {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for MixedPropertiesAndAdditionalPropertiesClass {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
// Skipping uuid in query parameter serialization
|
||||
|
||||
@ -3503,7 +3583,11 @@ impl std::string::ToString for MixedPropertiesAndAdditionalPropertiesClass {
|
||||
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -3635,8 +3719,8 @@ impl Model200Response {
|
||||
/// Converts the Model200Response value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for Model200Response {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for Model200Response {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.name
|
||||
.as_ref()
|
||||
@ -3646,7 +3730,11 @@ impl std::string::ToString for Model200Response {
|
||||
.map(|class| ["class".to_string(), class.to_string()].join(",")),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -3793,8 +3881,8 @@ impl Name {
|
||||
/// Converts the Name value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for Name {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for Name {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
Some("name".to_string()),
|
||||
Some(self.name.to_string()),
|
||||
@ -3809,7 +3897,11 @@ impl std::string::ToString for Name {
|
||||
}),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -3950,14 +4042,18 @@ impl NumberOnly {
|
||||
/// Converts the NumberOnly value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for NumberOnly {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for NumberOnly {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![self
|
||||
.just_number
|
||||
.as_ref()
|
||||
.map(|just_number| ["JustNumber".to_string(), just_number.to_string()].join(","))];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -4080,14 +4176,18 @@ impl ObjectContainingObjectWithOnlyAdditionalProperties {
|
||||
/// Converts the ObjectContainingObjectWithOnlyAdditionalProperties value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for ObjectContainingObjectWithOnlyAdditionalProperties {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for ObjectContainingObjectWithOnlyAdditionalProperties {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
// Skipping inner in query parameter serialization
|
||||
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -4225,10 +4325,10 @@ impl std::ops::DerefMut for ObjectWithOnlyAdditionalProperties {
|
||||
/// Converts the ObjectWithOnlyAdditionalProperties value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl ::std::string::ToString for ObjectWithOnlyAdditionalProperties {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for ObjectWithOnlyAdditionalProperties {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
// Skipping additionalProperties in query parameter serialization
|
||||
"".to_string()
|
||||
write!(f, "")
|
||||
}
|
||||
}
|
||||
|
||||
@ -4292,8 +4392,8 @@ impl Order {
|
||||
/// Converts the Order value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for Order {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for Order {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.id
|
||||
.as_ref()
|
||||
@ -4313,7 +4413,11 @@ impl std::string::ToString for Order {
|
||||
.map(|complete| ["complete".to_string(), complete.to_string()].join(",")),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -4512,8 +4616,8 @@ impl OuterComposite {
|
||||
/// Converts the OuterComposite value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for OuterComposite {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for OuterComposite {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.my_number
|
||||
.as_ref()
|
||||
@ -4526,7 +4630,11 @@ impl std::string::ToString for OuterComposite {
|
||||
.map(|my_boolean| ["my_boolean".to_string(), my_boolean.to_string()].join(",")),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -4735,9 +4843,9 @@ impl std::convert::From<String> for OuterString {
|
||||
}
|
||||
}
|
||||
|
||||
impl std::string::ToString for OuterString {
|
||||
fn to_string(&self) -> String {
|
||||
self.0.to_string()
|
||||
impl std::fmt::Display for OuterString {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "{:?}", self.0)
|
||||
}
|
||||
}
|
||||
|
||||
@ -4812,8 +4920,8 @@ impl Pet {
|
||||
/// Converts the Pet value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for Pet {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for Pet {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.id
|
||||
.as_ref()
|
||||
@ -4835,7 +4943,11 @@ impl std::string::ToString for Pet {
|
||||
.map(|status| ["status".to_string(), status.to_string()].join(",")),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -5000,8 +5112,8 @@ impl ReadOnlyFirst {
|
||||
/// Converts the ReadOnlyFirst value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for ReadOnlyFirst {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for ReadOnlyFirst {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.bar
|
||||
.as_ref()
|
||||
@ -5011,7 +5123,11 @@ impl std::string::ToString for ReadOnlyFirst {
|
||||
.map(|baz| ["baz".to_string(), baz.to_string()].join(",")),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -5142,14 +5258,18 @@ impl Return {
|
||||
/// Converts the Return value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for Return {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for Return {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![self
|
||||
.r#return
|
||||
.as_ref()
|
||||
.map(|r#return| ["return".to_string(), r#return.to_string()].join(","))];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -5279,8 +5399,8 @@ impl Tag {
|
||||
/// Converts the Tag value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for Tag {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for Tag {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.id
|
||||
.as_ref()
|
||||
@ -5290,7 +5410,11 @@ impl std::string::ToString for Tag {
|
||||
.map(|name| ["name".to_string(), name.to_string()].join(",")),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -5451,8 +5575,8 @@ impl User {
|
||||
/// Converts the User value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for User {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for User {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.id
|
||||
.as_ref()
|
||||
@ -5480,7 +5604,11 @@ impl std::string::ToString for User {
|
||||
.map(|user_status| ["userStatus".to_string(), user_status.to_string()].join(",")),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1 +1 @@
|
||||
7.3.0-SNAPSHOT
|
||||
7.4.0-SNAPSHOT
|
||||
|
@ -142,8 +142,8 @@ impl ApiResponse {
|
||||
/// Converts the ApiResponse value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for ApiResponse {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for ApiResponse {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.code
|
||||
.as_ref()
|
||||
@ -156,7 +156,11 @@ impl std::string::ToString for ApiResponse {
|
||||
.map(|message| ["message".to_string(), message.to_string()].join(",")),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -305,8 +309,8 @@ impl Category {
|
||||
/// Converts the Category value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for Category {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for Category {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.id
|
||||
.as_ref()
|
||||
@ -316,7 +320,11 @@ impl std::string::ToString for Category {
|
||||
.map(|name| ["name".to_string(), name.to_string()].join(",")),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -476,8 +484,8 @@ impl Order {
|
||||
/// Converts the Order value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for Order {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for Order {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.id
|
||||
.as_ref()
|
||||
@ -497,7 +505,11 @@ impl std::string::ToString for Order {
|
||||
.map(|complete| ["complete".to_string(), complete.to_string()].join(",")),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -678,8 +690,8 @@ impl Pet {
|
||||
/// Converts the Pet value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for Pet {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for Pet {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.id
|
||||
.as_ref()
|
||||
@ -701,7 +713,11 @@ impl std::string::ToString for Pet {
|
||||
.map(|status| ["status".to_string(), status.to_string()].join(",")),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -868,8 +884,8 @@ impl Tag {
|
||||
/// Converts the Tag value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for Tag {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for Tag {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.id
|
||||
.as_ref()
|
||||
@ -879,7 +895,11 @@ impl std::string::ToString for Tag {
|
||||
.map(|name| ["name".to_string(), name.to_string()].join(",")),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -1042,8 +1062,8 @@ impl User {
|
||||
/// Converts the User value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for User {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for User {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.id
|
||||
.as_ref()
|
||||
@ -1071,7 +1091,11 @@ impl std::string::ToString for User {
|
||||
.map(|user_status| ["userStatus".to_string(), user_status.to_string()].join(",")),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1 +1 @@
|
||||
7.3.0-SNAPSHOT
|
||||
7.4.0-SNAPSHOT
|
||||
|
@ -1 +1 @@
|
||||
7.3.0-SNAPSHOT
|
||||
7.4.0-SNAPSHOT
|
||||
|
@ -33,8 +33,8 @@ impl ANullableContainer {
|
||||
/// Converts the ANullableContainer value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for ANullableContainer {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for ANullableContainer {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.nullable_thing.as_ref().map(|nullable_thing| {
|
||||
[
|
||||
@ -53,7 +53,11 @@ impl std::string::ToString for ANullableContainer {
|
||||
),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -197,10 +201,10 @@ impl std::ops::DerefMut for AdditionalPropertiesObject {
|
||||
/// Converts the AdditionalPropertiesObject value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl ::std::string::ToString for AdditionalPropertiesObject {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for AdditionalPropertiesObject {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
// Skipping additionalProperties in query parameter serialization
|
||||
"".to_string()
|
||||
write!(f, "")
|
||||
}
|
||||
}
|
||||
|
||||
@ -242,8 +246,8 @@ impl AllOfObject {
|
||||
/// Converts the AllOfObject value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for AllOfObject {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for AllOfObject {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
self.sample_property.as_ref().map(|sample_property| {
|
||||
["sampleProperty".to_string(), sample_property.to_string()].join(",")
|
||||
@ -259,7 +263,11 @@ impl std::string::ToString for AllOfObject {
|
||||
}),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -390,8 +398,8 @@ impl BaseAllOf {
|
||||
/// Converts the BaseAllOf value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for BaseAllOf {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for BaseAllOf {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> =
|
||||
vec![self
|
||||
.sample_base_property
|
||||
@ -404,7 +412,11 @@ impl std::string::ToString for BaseAllOf {
|
||||
.join(",")
|
||||
})];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -530,8 +542,8 @@ impl DummyPutRequest {
|
||||
/// Converts the DummyPutRequest value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for DummyPutRequest {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for DummyPutRequest {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
Some("id".to_string()),
|
||||
Some(self.id.to_string()),
|
||||
@ -540,7 +552,11 @@ impl std::string::ToString for DummyPutRequest {
|
||||
.map(|password| ["password".to_string(), password.to_string()].join(",")),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -676,14 +692,18 @@ impl GetYamlResponse {
|
||||
/// Converts the GetYamlResponse value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for GetYamlResponse {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for GetYamlResponse {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![self
|
||||
.value
|
||||
.as_ref()
|
||||
.map(|value| ["value".to_string(), value.to_string()].join(","))];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -808,14 +828,18 @@ impl ObjectOfObjects {
|
||||
/// Converts the ObjectOfObjects value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for ObjectOfObjects {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for ObjectOfObjects {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
// Skipping inner in query parameter serialization
|
||||
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -945,8 +969,8 @@ impl ObjectOfObjectsInner {
|
||||
/// Converts the ObjectOfObjectsInner value to the Query Parameters representation (style=form, explode=false)
|
||||
/// specified in https://swagger.io/docs/specification/serialization/
|
||||
/// Should be implemented in a serde serializer
|
||||
impl std::string::ToString for ObjectOfObjectsInner {
|
||||
fn to_string(&self) -> String {
|
||||
impl std::fmt::Display for ObjectOfObjectsInner {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let params: Vec<Option<String>> = vec![
|
||||
Some("required_thing".to_string()),
|
||||
Some(self.required_thing.to_string()),
|
||||
@ -955,7 +979,11 @@ impl std::string::ToString for ObjectOfObjectsInner {
|
||||
}),
|
||||
];
|
||||
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
params.into_iter().flatten().collect::<Vec<_>>().join(",")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user