File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -119,8 +119,8 @@ struct Source {
119119 headers : Option < Vec < SourceHeader > > ,
120120 #[ serde( skip_serializing_if = "Option::is_none" ) ]
121121 methods : Option < Vec < String > > ,
122- #[ serde( skip_serializing_if = "Option::is_none " ) ]
123- ips : Option < Vec < IpConstraint > > ,
122+ #[ serde( skip_serializing_if = "Vec::is_empty" , default , with = "serde_yaml::with::singleton_map_recursive ") ]
123+ ips : Vec < IpConstraint > ,
124124 #[ serde( skip_serializing_if = "Option::is_none" ) ]
125125 response_status_codes : Option < Vec < u16 > > ,
126126 #[ serde( skip_serializing_if = "Option::is_none" ) ]
@@ -187,6 +187,7 @@ pub enum VariableKind {
187187pub struct Variable {
188188 pub name : String ,
189189 #[ serde( rename = "type" ) ]
190+ #[ serde( with = "serde_yaml::with::singleton_map" ) ]
190191 kind : VariableKind ,
191192 #[ serde( skip_serializing_if = "Vec::is_empty" , default ) ]
192193 transformers : Vec < Transformer > ,
You can’t perform that action at this time.
0 commit comments