-
-
Couldn't load subscription status.
- Fork 27
Proposed fixes for the CWL JSON Schema #299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
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! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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!