What's going on with --strict mode, please? Please find my example below
When --restrict is on by default
$ cwl-runner hello-param.cwl#main params.json
/home/zxue/trial_learning/trial_cwl/venv/bin/cwl-runner 1.0.20160316204054
Tool definition failed validation:
Validation error in object file:///home/zxue/trial_learning/trial_cwl/workflows/workflows/hello/hello-param.cwl#main
Could not validate as `CommandLineTool` because
could not validate field `outputs` because
At position 0
could not validate field `source` because it is not recognized and strict is True, valid fields are: secondaryFiles, format, streamable, type, label, description, id, outputBinding
missing required field `baseCommand`
could not validate field `steps` because it is not recognized and strict is True, valid fields are: id, inputs, outputs, requirements, hints, label, description, cwlVersion, class, baseCommand, arguments, stdin, stdout, successCodes, temporaryFailCodes, permanentFailCodes
Could not validate as `Workflow` because
could not validate field `steps` because
the value `[{'id': 'file:///home/zxue/trial_learning/trial_cwl/workflows/workflows/hello/hello-param.cwl#step0',
'inputs': [{'id': 'file:///home/zxue/trial_learning/tria[...]`
is not a valid type in the union, expected one of:
- array of <WorkflowStep>, but
At position 0
could not validate field `outputs` because
At position 0
could not validate field `defaul` because it is not recognized and strict is True, valid fields are: id
Could not validate as `SaladEnumSchema` because
missing required field `type`
missing required field `symbols`
could not validate field `inputs` because it is not recognized and strict is True, valid fields are: type, symbols, doc, docParent, docChild, docAfter, jsonldPredicate, documentRoot, extends
could not validate field `steps` because it is not recognized and strict is True, valid fields are: type, symbols, doc, docParent, docChild, docAfter, jsonldPredicate, documentRoot, extends
could not validate field `description` because it is not recognized and strict is True, valid fields are: type, symbols, doc, docParent, docChild, docAfter, jsonldPredicate, documentRoot, extends
could not validate field `outputs` because it is not recognized and strict is True, valid fields are: type, symbols, doc, docParent, docChild, docAfter, jsonldPredicate, documentRoot, extends
could not validate field `requirements` because it is not recognized and strict is True, valid fields are: type, symbols, doc, docParent, docChild, docAfter, jsonldPredicate, documentRoot, extends
could not validate field `class` because it is not recognized and strict is True, valid fields are: type, symbols, doc, docParent, docChild, docAfter, jsonldPredicate, documentRoot, extends
could not validate field `label` because it is not recognized and strict is True, valid fields are: type, symbols, doc, docParent, docChild, docAfter, jsonldPredicate, documentRoot, extends
Could not validate as `Documentation` because
missing required field `name`
missing required field `type`
could not validate field `inputs` because it is not recognized and strict is True, valid fields are: name, doc, docParent, docChild, docAfter, type
could not validate field `steps` because it is not recognized and strict is True, valid fields are: name, doc, docParent, docChild, docAfter, type
could not validate field `description` because it is not recognized and strict is True, valid fields are: name, doc, docParent, docChild, docAfter, type
could not validate field `outputs` because it is not recognized and strict is True, valid fields are: name, doc, docParent, docChild, docAfter, type
could not validate field `requirements` because it is not recognized and strict is True, valid fields are: name, doc, docParent, docChild, docAfter, type
could not validate field `class` because it is not recognized and strict is True, valid fields are: name, doc, docParent, docChild, docAfter, type
could not validate field `label` because it is not recognized and strict is True, valid fields are: name, doc, docParent, docChild, docAfter, type
Could not validate as `ExpressionTool` because
could not validate field `outputs` because
At position 0
could not validate field `source` because it is not recognized and strict is True, valid fields are: secondaryFiles, format, streamable, type, label, description, id, outputBinding
missing required field `expression`
could not validate field `steps` because it is not recognized and strict is True, valid fields are: id, inputs, outputs, requirements, hints, label, description, cwlVersion, class, expression
Could not validate as `SaladRecordSchema` because
missing required field `name`
missing required field `type`
could not validate field `inputs` because it is not recognized and strict is True, valid fields are: name, type, fields, doc, docParent, docChild, docAfter, jsonldPredicate, documentRoot, abstract, extends, specialize
could not validate field `steps` because it is not recognized and strict is True, valid fields are: name, type, fields, doc, docParent, docChild, docAfter, jsonldPredicate, documentRoot, abstract, extends, specialize
could not validate field `description` because it is not recognized and strict is True, valid fields are: name, type, fields, doc, docParent, docChild, docAfter, jsonldPredicate, documentRoot, abstract, extends, specialize
could not validate field `outputs` because it is not recognized and strict is True, valid fields are: name, type, fields, doc, docParent, docChild, docAfter, jsonldPredicate, documentRoot, abstract, extends, specialize
could not validate field `requirements` because it is not recognized and strict is True, valid fields are: name, type, fields, doc, docParent, docChild, docAfter, jsonldPredicate, documentRoot, abstract, extends, specialize
could not validate field `class` because it is not recognized and strict is True, valid fields are: name, type, fields, doc, docParent, docChild, docAfter, jsonldPredicate, documentRoot, abstract, extends, specialize
could not validate field `label` because it is not recognized and strict is True, valid fields are: name, type, fields, doc, docParent, docChild, docAfter, jsonldPredicate, documentRoot, abstract, extends, specialize
What's going on with
--strict
mode, please? Please find my example belowWhen --restrict is on by default
Turn off
--strict
with--non-strict