Skip to content

Conversation

@GlassOfWhiskey
Copy link
Contributor

This commit introduces support for the noLinkCheck jsonldPredicate in the Schema SALAD codegen toolchain, and in particular in the URILoader stack. When noLinkCheck is set to true, no link checking is performed for all the underlying objects hierarchy. The need to propagate its value to the hierarchy makes it necessary to modify also the LoadingOptions data structure.

All parsers but the Python one never perform link checking up to now, so this update makes no modification to their actual behaviour. However, it enables the URILoader classes to receive the noLinkCheck parameter for future implementations.

@mr-c mr-c marked this pull request as draft October 20, 2023 07:43
@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

Merging #760 (9c2a011) into main (990d856) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #760   +/-   ##
=======================================
  Coverage   83.68%   83.68%           
=======================================
  Files          22       22           
  Lines        4580     4580           
  Branches     1239     1239           
=======================================
  Hits         3833     3833           
  Misses        483      483           
  Partials      264      264           
Files Coverage Δ
schema_salad/codegen.py 94.64% <100.00%> (ø)
schema_salad/codegen_base.py 100.00% <ø> (ø)
schema_salad/dotnet_codegen.py 95.75% <ø> (ø)
schema_salad/java_codegen.py 91.10% <ø> (ø)
schema_salad/python_codegen.py 93.65% <ø> (ø)
schema_salad/typescript_codegen.py 95.95% <ø> (ø)

@mr-c
Copy link
Member

mr-c commented Oct 20, 2023

Looks like it is working! Can we have an updated cwl-utils PR to evaluate the result?

mr-c added a commit to common-workflow-language/cwl-utils that referenced this pull request Oct 25, 2023
@GlassOfWhiskey GlassOfWhiskey force-pushed the no-link-check-codegen branch 2 times, most recently from da21572 to 837e664 Compare October 31, 2023 11:31
@mr-c mr-c force-pushed the no-link-check-codegen branch from 837e664 to 3b99e49 Compare October 31, 2023 15:42
mr-c added a commit to common-workflow-language/cwl-utils that referenced this pull request Oct 31, 2023
mr-c added a commit to common-workflow-language/cwljava that referenced this pull request Oct 31, 2023
This commit introduces support for the `noLinkCheck` `jsonldPredicate`
in the Schema SALAD codegen toolchain, and in particular in the
`URILoader` stack. When `noLinkCheck` is set to `true`, no link checking
is performed for all the underlying objects hierarchy. The need to
propagate its value to the hierarchy makes it necessary to modify also
the `LoadingOptions` data structure.

All parsers but the Python one never perform link checking up to now, so
this update makes no modification to their actual behaviour. However, it
enables the `URILoader` classes to receive the `noLinkCheck` parameter
for future implementations.
@mr-c mr-c marked this pull request as ready for review October 31, 2023 17:01
@mr-c mr-c enabled auto-merge (rebase) October 31, 2023 17:01
@mr-c mr-c merged commit 377982a into main Oct 31, 2023
@mr-c mr-c deleted the no-link-check-codegen branch October 31, 2023 17:20
mr-c added a commit to common-workflow-language/cwljava that referenced this pull request Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants