From aef2929116c07c7d38df9f8f9a3eb671f87d6dc5 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Tue, 15 Nov 2016 12:38:46 +0200 Subject: [PATCH] Strip identifiers when checking hints Allows for hints originating from $import --- cwltool/process.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cwltool/process.py b/cwltool/process.py index da2c12b00..c092db0ad 100644 --- a/cwltool/process.py +++ b/cwltool/process.py @@ -555,8 +555,11 @@ def validate_hints(self, avsc_names, hints, strict): for r in hints: try: if avsc_names.get_name(r["class"], "") is not None: - validate.validate_ex(avsc_names.get_name(r["class"], ""), - r, strict=strict) + plain_hint = dict((key,r[key]) for key in r if key not in + self.doc_loader.identifiers) # strip identifiers + validate.validate_ex( + avsc_names.get_name(plain_hint["class"], ""), + plain_hint, strict=strict) else: _logger.info(Text(validate.ValidationException( u"Unknown hint %s" % (r["class"]))))