@@ -1096,14 +1096,12 @@ pub struct ArrayTest {
10961096
10971097 #[ serde( rename = "array_array_of_model" ) ]
10981098
1099- #[ cfg_attr( feature = "validate" , validate) ]
11001099 #[ cfg_attr( feature = "validate" , validate) ]
11011100 #[ serde( skip_serializing_if="Option::is_none" ) ]
11021101 pub array_array_of_model : Option < Vec < Vec < models:: ReadOnlyFirst > > > ,
11031102
11041103 #[ serde( rename = "array_of_enum" ) ]
11051104
1106- #[ cfg_attr( feature = "validate" , validate) ]
11071105 #[ cfg_attr( feature = "validate" , validate) ]
11081106 #[ serde( skip_serializing_if="Option::is_none" ) ]
11091107 pub array_of_enum : Option < Vec < models:: MapTestMapMapOfEnumValueValue > > ,
@@ -2641,21 +2639,18 @@ impl DollarSpecialLeftSquareBracketModelNameRightSquareBracket {
26412639pub struct EnumArrays {
26422640 #[ serde( rename = "just_symbol" ) ]
26432641
2644- #[ cfg_attr( feature = "validate" , validate) ]
26452642 #[ cfg_attr( feature = "validate" , validate) ]
26462643 #[ serde( skip_serializing_if="Option::is_none" ) ]
26472644 pub just_symbol : Option < models:: EnumArraysJustSymbol > ,
26482645
26492646 #[ serde( rename = "array_enum" ) ]
26502647
2651- #[ cfg_attr( feature = "validate" , validate) ]
26522648 #[ cfg_attr( feature = "validate" , validate) ]
26532649 #[ serde( skip_serializing_if="Option::is_none" ) ]
26542650 pub array_enum : Option < Vec < models:: EnumArraysArrayEnumInner > > ,
26552651
26562652 #[ serde( rename = "array_array_enum" ) ]
26572653
2658- #[ cfg_attr( feature = "validate" , validate) ]
26592654 #[ cfg_attr( feature = "validate" , validate) ]
26602655 #[ serde( skip_serializing_if="Option::is_none" ) ]
26612656 pub array_array_enum : Option < Vec < Vec < models:: EnumArraysArrayArrayEnumInnerInner > > > ,
@@ -3329,7 +3324,6 @@ impl EnumClass {
33293324pub struct EnumTest {
33303325 #[ serde( rename = "enum_string" ) ]
33313326
3332- #[ cfg_attr( feature = "validate" , validate) ]
33333327 #[ cfg_attr( feature = "validate" , validate) ]
33343328 #[ serde( skip_serializing_if="Option::is_none" ) ]
33353329 pub enum_string : Option < models:: EnumTestEnumString > ,
@@ -3341,21 +3335,18 @@ pub struct EnumTest {
33413335
33423336 #[ serde( rename = "enum_integer" ) ]
33433337
3344- #[ cfg_attr( feature = "validate" , validate) ]
33453338 #[ cfg_attr( feature = "validate" , validate) ]
33463339 #[ serde( skip_serializing_if="Option::is_none" ) ]
33473340 pub enum_integer : Option < models:: EnumTestEnumInteger > ,
33483341
33493342 #[ serde( rename = "enum_number" ) ]
33503343
3351- #[ cfg_attr( feature = "validate" , validate) ]
33523344 #[ cfg_attr( feature = "validate" , validate) ]
33533345 #[ serde( skip_serializing_if="Option::is_none" ) ]
33543346 pub enum_number : Option < models:: TestEnumParametersEnumQueryDoubleParameter > ,
33553347
33563348 #[ serde( rename = "outerEnum" ) ]
33573349
3358- #[ cfg_attr( feature = "validate" , validate) ]
33593350 #[ cfg_attr( feature = "validate" , validate) ]
33603351 #[ serde( skip_serializing_if="Option::is_none" ) ]
33613352 pub outer_enum : Option < models:: OuterEnum > ,
@@ -4663,14 +4654,12 @@ pub struct MapTest {
46634654
46644655 #[ serde( rename = "map_map_of_enum" ) ]
46654656
4666- #[ cfg_attr( feature = "validate" , validate) ]
46674657 #[ cfg_attr( feature = "validate" , validate) ]
46684658 #[ serde( skip_serializing_if="Option::is_none" ) ]
46694659 pub map_map_of_enum : Option < std:: collections:: HashMap < String , std:: collections:: HashMap < String , models:: MapTestMapMapOfEnumValueValue > > > ,
46704660
46714661 #[ serde( rename = "map_of_enum_string" ) ]
46724662
4673- #[ cfg_attr( feature = "validate" , validate) ]
46744663 #[ cfg_attr( feature = "validate" , validate) ]
46754664 #[ serde( skip_serializing_if="Option::is_none" ) ]
46764665 pub map_of_enum_string : Option < std:: collections:: HashMap < String , models:: MapTestMapMapOfEnumValueValue > > ,
@@ -4980,7 +4969,6 @@ pub struct MixedPropertiesAndAdditionalPropertiesClass {
49804969
49814970 #[ serde( rename = "map" ) ]
49824971
4983- #[ cfg_attr( feature = "validate" , validate) ]
49844972 #[ cfg_attr( feature = "validate" , validate) ]
49854973 #[ serde( skip_serializing_if="Option::is_none" ) ]
49864974 pub map : Option < std:: collections:: HashMap < String , models:: Animal > > ,
@@ -5735,7 +5723,6 @@ impl NumberOnly {
57355723pub struct ObjectContainingObjectWithOnlyAdditionalProperties {
57365724 #[ serde( rename = "inner" ) ]
57375725
5738- #[ cfg_attr( feature = "validate" , validate) ]
57395726 #[ cfg_attr( feature = "validate" , validate) ]
57405727 #[ serde( skip_serializing_if="Option::is_none" ) ]
57415728 pub inner : Option < models:: ObjectWithOnlyAdditionalProperties > ,
@@ -5930,6 +5917,15 @@ impl std::ops::DerefMut for ObjectWithOnlyAdditionalProperties {
59305917 }
59315918}
59325919
5920+ #[ cfg( feature = "validate" ) ]
5921+ impl serde_valid:: validation:: ValidateCompositedMinLength for ObjectWithOnlyAdditionalProperties {
5922+ fn validate_composited_min_length (
5923+ & self ,
5924+ _min_length : usize ,
5925+ ) -> Result < ( ) , serde_valid:: validation:: Composited < serde_valid:: validation:: error:: MinLengthError > > {
5926+ Ok ( ( ) )
5927+ }
5928+ }
59335929/// Converts the ObjectWithOnlyAdditionalProperties value to the Query Parameters representation (style=form, explode=false)
59345930/// specified in <https://swagger.io/docs/specification/serialization/>
59355931/// Should be implemented in a serde serializer
@@ -6064,7 +6060,6 @@ pub struct Order {
60646060
60656061 #[ serde( rename = "status" ) ]
60666062
6067- #[ cfg_attr( feature = "validate" , validate) ]
60686063 #[ cfg_attr( feature = "validate" , validate) ]
60696064 #[ serde( skip_serializing_if="Option::is_none" ) ]
60706065 pub status : Option < models:: OrderStatus > ,
@@ -6442,6 +6437,15 @@ impl std::ops::DerefMut for OuterBoolean {
64426437 }
64436438}
64446439
6440+ #[ cfg( feature = "validate" ) ]
6441+ impl serde_valid:: validation:: ValidateCompositedMinLength for OuterBoolean {
6442+ fn validate_composited_min_length (
6443+ & self ,
6444+ _min_length : usize ,
6445+ ) -> Result < ( ) , serde_valid:: validation:: Composited < serde_valid:: validation:: error:: MinLengthError > > {
6446+ Ok ( ( ) )
6447+ }
6448+ }
64456449/// Converts the OuterBoolean value to the Query Parameters representation (style=form, explode=false)
64466450/// specified in <https://swagger.io/docs/specification/serialization/>
64476451/// Should be implemented in a serde serializer
@@ -6914,6 +6918,15 @@ impl std::ops::DerefMut for OuterNumber {
69146918 }
69156919}
69166920
6921+ #[ cfg( feature = "validate" ) ]
6922+ impl serde_valid:: validation:: ValidateCompositedMinLength for OuterNumber {
6923+ fn validate_composited_min_length (
6924+ & self ,
6925+ _min_length : usize ,
6926+ ) -> Result < ( ) , serde_valid:: validation:: Composited < serde_valid:: validation:: error:: MinLengthError > > {
6927+ Ok ( ( ) )
6928+ }
6929+ }
69176930/// Converts the OuterNumber value to the Query Parameters representation (style=form, explode=false)
69186931/// specified in <https://swagger.io/docs/specification/serialization/>
69196932/// Should be implemented in a serde serializer
@@ -7056,6 +7069,15 @@ impl std::ops::DerefMut for OuterString {
70567069 }
70577070}
70587071
7072+ #[ cfg( feature = "validate" ) ]
7073+ impl serde_valid:: validation:: ValidateCompositedMinLength for OuterString {
7074+ fn validate_composited_min_length (
7075+ & self ,
7076+ _min_length : usize ,
7077+ ) -> Result < ( ) , serde_valid:: validation:: Composited < serde_valid:: validation:: error:: MinLengthError > > {
7078+ Ok ( ( ) )
7079+ }
7080+ }
70597081impl std:: fmt:: Display for OuterString {
70607082 fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
70617083 write ! ( f, "{}" , self . 0 . clone( ) )
@@ -7167,7 +7189,6 @@ pub struct Pet {
71677189
71687190 #[ serde( rename = "category" ) ]
71697191
7170- #[ cfg_attr( feature = "validate" , validate) ]
71717192 #[ cfg_attr( feature = "validate" , validate) ]
71727193 #[ serde( skip_serializing_if="Option::is_none" ) ]
71737194 pub category : Option < models:: Category > ,
@@ -7182,14 +7203,12 @@ pub struct Pet {
71827203
71837204 #[ serde( rename = "tags" ) ]
71847205
7185- #[ cfg_attr( feature = "validate" , validate) ]
71867206 #[ cfg_attr( feature = "validate" , validate) ]
71877207 #[ serde( skip_serializing_if="Option::is_none" ) ]
71887208 pub tags : Option < Vec < models:: Tag > > ,
71897209
71907210 #[ serde( rename = "status" ) ]
71917211
7192- #[ cfg_attr( feature = "validate" , validate) ]
71937212 #[ cfg_attr( feature = "validate" , validate) ]
71947213 #[ serde( skip_serializing_if="Option::is_none" ) ]
71957214 pub status : Option < models:: PetStatus > ,
0 commit comments