@@ -442,11 +442,11 @@ impl JsonSchemaAs<Vec<u8>> for BytesOrString {
442
442
"serde_with::BytesOrString" . into ( )
443
443
}
444
444
445
- fn json_schema ( gen : & mut SchemaGenerator ) -> Schema {
445
+ fn json_schema ( generator : & mut SchemaGenerator ) -> Schema {
446
446
SchemaObject {
447
447
subschemas : Some ( Box :: new ( SubschemaValidation {
448
448
any_of : Some ( std:: vec![
449
- gen . subschema_for:: <Vec <u8 >>( ) ,
449
+ generator . subschema_for:: <Vec <u8 >>( ) ,
450
450
SchemaObject {
451
451
instance_type: Some ( InstanceType :: String . into( ) ) ,
452
452
metadata: Some ( Box :: new( Metadata {
@@ -607,13 +607,13 @@ where
607
607
///
608
608
/// Unfortunately for us, we need to handle all of these options by recursing
609
609
/// into the subschemas and applying the same transformations as above.
610
- fn kvmap_transform_schema ( gen : & mut SchemaGenerator , schema : & mut Schema ) {
610
+ fn kvmap_transform_schema_0_8 ( gen : & mut SchemaGenerator , schema : & mut Schema ) {
611
611
let mut parents = Vec :: new ( ) ;
612
612
613
- Self :: kvmap_transform_schema_impl ( gen, schema, & mut parents, 0 ) ;
613
+ Self :: kvmap_transform_schema_impl_0_8 ( gen, schema, & mut parents, 0 ) ;
614
614
}
615
615
616
- fn kvmap_transform_schema_impl (
616
+ fn kvmap_transform_schema_impl_0_8 (
617
617
gen : & mut SchemaGenerator ,
618
618
schema : & mut Schema ,
619
619
parents : & mut Vec < String > ,
@@ -707,19 +707,19 @@ where
707
707
708
708
if let Some ( one_of) = & mut subschemas. one_of {
709
709
for subschema in one_of {
710
- Self :: kvmap_transform_schema_impl ( gen, subschema, & mut parents, depth + 1 ) ;
710
+ Self :: kvmap_transform_schema_impl_0_8 ( gen, subschema, & mut parents, depth + 1 ) ;
711
711
}
712
712
}
713
713
714
714
if let Some ( any_of) = & mut subschemas. any_of {
715
715
for subschema in any_of {
716
- Self :: kvmap_transform_schema_impl ( gen, subschema, & mut parents, depth + 1 ) ;
716
+ Self :: kvmap_transform_schema_impl_0_8 ( gen, subschema, & mut parents, depth + 1 ) ;
717
717
}
718
718
}
719
719
720
720
if let Some ( all_of) = & mut subschemas. all_of {
721
721
for subschema in all_of {
722
- Self :: kvmap_transform_schema_impl ( gen, subschema, & mut parents, depth + 1 ) ;
722
+ Self :: kvmap_transform_schema_impl_0_8 ( gen, subschema, & mut parents, depth + 1 ) ;
723
723
}
724
724
}
725
725
}
@@ -743,7 +743,7 @@ where
743
743
744
744
fn json_schema ( gen : & mut SchemaGenerator ) -> Schema {
745
745
let mut value = <WrapSchema < T , TA > >:: json_schema ( gen) ;
746
- <WrapSchema < Vec < T > , KeyValueMap < TA > > >:: kvmap_transform_schema ( gen, & mut value) ;
746
+ <WrapSchema < Vec < T > , KeyValueMap < TA > > >:: kvmap_transform_schema_0_8 ( gen, & mut value) ;
747
747
748
748
SchemaObject {
749
749
instance_type : Some ( InstanceType :: Object . into ( ) ) ,
@@ -919,12 +919,12 @@ macro_rules! schema_for_pickfirst {
919
919
. into( )
920
920
}
921
921
922
- fn json_schema( gen : & mut SchemaGenerator ) -> Schema {
922
+ fn json_schema( g : & mut SchemaGenerator ) -> Schema {
923
923
let mut first = true ;
924
924
let subschemas = std:: vec![ $(
925
925
{
926
926
let is_first = std:: mem:: replace( & mut first, false ) ;
927
- let schema = gen . subschema_for:: <WrapSchema <T , $param>>( ) ;
927
+ let schema = g . subschema_for:: <WrapSchema <T , $param>>( ) ;
928
928
929
929
if !is_first {
930
930
SchemaObject {
0 commit comments