@@ -170,7 +170,7 @@ def get_localschema_errors(
170
170
return list (validator .iter_errors (instance = need ))
171
171
172
172
173
- def get_schema_by_id (schema_id : str , schemas : list [dict [ str , Any ]] ) -> dict [ str , Any ] :
173
+ def get_schema_by_id (schema_id : str , schemas : list [SchemaType ] ) -> SchemaType :
174
174
"""
175
175
Resolve a schema reference by its ID.
176
176
@@ -413,7 +413,7 @@ def validate_need(
413
413
config = config ,
414
414
warnings = warnings ,
415
415
need = need ,
416
- schema = linked_schema ,
416
+ schema = dict ( linked_schema ) ,
417
417
rule = MessageRuleEnum .missing_target ,
418
418
need_path = [* need_path , link_type ],
419
419
schema_path = [
@@ -484,7 +484,7 @@ def validate_need(
484
484
config = config ,
485
485
warnings = warnings ,
486
486
need = need ,
487
- schema = linked_schema ,
487
+ schema = dict ( linked_schema ) ,
488
488
rule = MessageRuleEnum .too_few_links ,
489
489
need_path = [* need_path , link_type ],
490
490
schema_path = [
@@ -509,7 +509,7 @@ def validate_need(
509
509
config = config ,
510
510
warnings = warnings ,
511
511
need = need ,
512
- schema = linked_schema ,
512
+ schema = dict ( linked_schema ) ,
513
513
rule = MessageRuleEnum .too_many_links ,
514
514
need_path = [* need_path , link_type ],
515
515
schema_path = [
@@ -531,7 +531,7 @@ def validate_need(
531
531
config = config ,
532
532
warnings = warnings ,
533
533
need = need ,
534
- schema = linked_schema ,
534
+ schema = dict ( linked_schema ) ,
535
535
rule = MessageRuleEnum .unevaluated_additional_links ,
536
536
need_path = [* need_path , link_type ],
537
537
schema_path = [
0 commit comments