@@ -244,7 +244,7 @@ def __init__(self, toolpath_object, **kwargs):
244
244
self .formatgraph = kwargs ["loader" ].graph
245
245
246
246
checkRequirements (self .tool , supportedProcessRequirements )
247
- self .validate_hints (self .tool .get ("hints" , []), strict = kwargs .get ("strict" ))
247
+ self .validate_hints (kwargs [ "avsc_names" ], self .tool .get ("hints" , []), strict = kwargs .get ("strict" ))
248
248
249
249
self .schemaDefs = {} # type: Dict[str,Dict[unicode, Any]]
250
250
@@ -407,12 +407,12 @@ def evalResources(self, builder, kwargs):
407
407
"outdirSize" : request ["outdirMin" ],
408
408
}
409
409
410
- def validate_hints (self , hints , strict ):
410
+ def validate_hints (self , avsc_names , hints , strict ):
411
411
# type: (List[Dict[str, Any]], bool) -> None
412
412
for r in hints :
413
413
try :
414
- if self . names .get_name (r ["class" ], "" ) is not None :
415
- validate .validate_ex (self . names .get_name (r ["class" ], "" ), r , strict = strict )
414
+ if avsc_names .get_name (r ["class" ], "" ) is not None :
415
+ validate .validate_ex (avsc_names .get_name (r ["class" ], "" ), r , strict = strict )
416
416
else :
417
417
_logger .info (str (validate .ValidationException (
418
418
u"Unknown hint %s" % (r ["class" ]))))
0 commit comments