Closed johnbradley closed 5 years ago
In the WorkflowVersion table the fields contains {"name": "interval_padding", "type": ["null", "int"]}
.
The CWL type ["null", "int"]
means the field is optional.
Currently bespin-api just checks that all fields's keys have a value ignoring the type: https://github.com/Duke-GCB/bespin-api/blob/82921488d7f56ca6bbea40af183d1ba386777aa5/bespin_api_v2/jobtemplate.py#L216-L224
Fixed by #203
Optional fields are causing job template validation to fail. This can be seen on the dev server by going to: https://bespin-dev.gcb.duke.edu/api/v2/job-templates/validate Posting the following data:
You will receive an error like so:
The interval padding field in exomeseq-gatk4.cwl is optional and in the past hasn't been specified and was fine.