Skip to content

Commit aef2929

Browse files
committed
Strip identifiers when checking hints
Allows for hints originating from $import
1 parent 5ab452e commit aef2929

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cwltool/process.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,8 +555,11 @@ def validate_hints(self, avsc_names, hints, strict):
555555
for r in hints:
556556
try:
557557
if avsc_names.get_name(r["class"], "") is not None:
558-
validate.validate_ex(avsc_names.get_name(r["class"], ""),
559-
r, strict=strict)
558+
plain_hint = dict((key,r[key]) for key in r if key not in
559+
self.doc_loader.identifiers) # strip identifiers
560+
validate.validate_ex(
561+
avsc_names.get_name(plain_hint["class"], ""),
562+
plain_hint, strict=strict)
560563
else:
561564
_logger.info(Text(validate.ValidationException(
562565
u"Unknown hint %s" % (r["class"]))))

0 commit comments

Comments
 (0)