nfdi4plants / CWLGenerator

MIT License
3 stars 0 forks source link

Set empty prefix as undefined in inputbinding #2

Closed ZimmerA closed 2 years ago

ZimmerA commented 2 years ago

Not specifying a prefix should result in the prefix field not being present in the generated input binding. Currently, a prefix with an empty string as value is generated. This can lead to unwanted behavior because the command constructed by CWL will take the empty prefixes into account. See: https://github.com/nfdi4plants/CWLGenerator/issues/1#issuecomment-1196610166

This PR fixes the issue by setting the prefix to undefined when the prefix string is empty.