Proposed fixes for the CWL JSON Schema #299
Proposed fixes for the CWL JSON Schema #299sim13pods wants to merge 2 commits intocommon-workflow-language:mainfrom
Conversation
- updated schema to draft 2020-12; - 'format: uuid' does not need the pattern to be specified; - 'format: url' replaced with 'format: uri' that does not need pattern to be specified; - single valued enums tranformed to constants; - type: 'null' wrongly interpreted, replaced by 'type: null' - fixed misaligned 'required' element in 'InlineJavascriptRequirement' entity.
|
@sim13pods Any thoughts on the |
@mr-c I will take care of understanding how that specific validation works ASAP, I will update the PR during the next days, thanks for the pointer! |
fmigneault
left a comment
There was a problem hiding this comment.
enum->const is OK given the schema version change.
It was not allowed in older JSON-schema.
Other specific issues indicated directly in the code.
Amongst other fixes mentioned, because of the fix for There might be a need for a separate entry to manage the map/list variants, because while |
is not required, it is optional: https://www.commonwl.org/v1.2/CommandLineTool.html#InlineJavascriptRequirement |
|
Yes, but creating a list of |
|
Hi there @fmigneault I just pushed your suggested changes, I have no idea anyway how to handle |
|
It would be something similar to this: Lines 970 to 991 in ec03f9a The |
Hi @fmigneault
I was checking out the JSON Schema and noticed a couple of small issues that were causing validation problems. I took the liberty of making a few quick tweaks to fix them, ensuring the Schema now works as expected:
format: uuiddoes not need thepatternto be specified;format: urlreplaced withformat: urithat does not needpatternto be specified;type: 'null'wrongly interpreted, replaced bytype: nullrequired' element inInlineJavascriptRequirement` entity.Please feel free to review it and let me know what you think. I’m totally open to feedback or further changes if needed.
Thanks a lot for your work on this! It’s always awesome to see well-crafted schemas shared with the community — I truly appreciate your efforts and I just wanted to give something back!