@@ -24,7 +24,7 @@ macro_rules! traverse_key_fn {
2424macro_rules! traverse {
2525 ( $( $key: expr => $func: expr) ,* ; $dict: expr, $ctx: expr) => { {
2626 $( traverse_key_fn!( $key, $func, $dict, $ctx) ; ) *
27- traverse_key_fn!( "serialization" , gather_serialization , $dict, $ctx) ;
27+ traverse_key_fn!( "serialization" , gather_schema , $dict, $ctx) ;
2828 gather_meta( $dict, $ctx)
2929 } }
3030}
@@ -56,7 +56,7 @@ fn gather_definition_ref(schema_ref_dict: &Bound<'_, PyDict>, ctx: &mut GatherCt
5656 ctx. recursively_seen_refs . insert ( schema_ref_str. to_string ( ) ) ;
5757
5858 gather_schema ( definition. downcast_exact :: < PyDict > ( ) ?, ctx) ?;
59- traverse_key_fn ! ( "serialization" , gather_serialization , schema_ref_dict, ctx) ;
59+ traverse_key_fn ! ( "serialization" , gather_schema , schema_ref_dict, ctx) ;
6060 gather_meta ( schema_ref_dict, ctx) ?;
6161
6262 ctx. recursively_seen_refs . remove ( schema_ref_str) ;
@@ -74,10 +74,6 @@ fn gather_definition_ref(schema_ref_dict: &Bound<'_, PyDict>, ctx: &mut GatherCt
7474 }
7575}
7676
77- fn gather_serialization ( schema : & Bound < ' _ , PyDict > , ctx : & mut GatherCtx ) -> PyResult < ( ) > {
78- traverse ! ( "schema" => gather_schema, "return_schema" => gather_schema; schema, ctx)
79- }
80-
8177fn gather_meta ( schema : & Bound < ' _ , PyDict > , ctx : & mut GatherCtx ) -> PyResult < ( ) > {
8278 if let Some ( meta) = get ! ( schema, "metadata" ) {
8379 let meta_dict = meta. downcast_exact :: < PyDict > ( ) ?;
0 commit comments