Skip to content
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

dlang: fix mis-annotated link annotation #632

Merged
merged 2 commits into from
Dec 7, 2022
Merged

dlang: fix mis-annotated link annotation #632

merged 2 commits into from
Dec 7, 2022

Conversation

tom-tan
Copy link
Member

@tom-tan tom-tan commented Nov 19, 2022

This request fixes @link annotation in dlang codegen.

Current implementation considers only the case of _type: @id to add an annotation @link but identity: true is also needed as reported in #631.

tom-tan added a commit to common-workflow-lab/cwl-d-auto that referenced this pull request Nov 19, 2022
@tom-tan
Copy link
Member Author

tom-tan commented Nov 20, 2022

It may not be the correct fix if I misunderstand the spec (See #631 (comment)).

@codecov
Copy link

codecov bot commented Dec 6, 2022

Codecov Report

Merging #632 (a1d9f04) into main (7bc0d8e) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head a1d9f04 differs from pull request most recent head 92542d7. Consider uploading reports for the commit 92542d7 to get more accurate results

@@           Coverage Diff           @@
##             main     #632   +/-   ##
=======================================
  Coverage   83.43%   83.44%           
=======================================
  Files          20       20           
  Lines        4039     4041    +2     
  Branches     1096     1097    +1     
=======================================
+ Hits         3370     3372    +2     
  Misses        426      426           
  Partials      243      243           
Impacted Files Coverage Δ
schema_salad/dlang_codegen.py 84.10% <100.00%> (+0.21%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@tom-tan tom-tan force-pushed the dlang-fix-_type-id branch from c8bb954 to a1d9f04 Compare December 6, 2022 12:02
@tom-tan
Copy link
Member Author

tom-tan commented Dec 6, 2022

As clarified in #631 (comment) and #633, I introduced a new parameter for link annotation to control the resolution method.

The resulted parser will work with schema-salad-d v0.11.0.

@tom-tan
Copy link
Member Author

tom-tan commented Dec 7, 2022

Once #633 is merged, it is ready to merge!

@mr-c mr-c force-pushed the dlang-fix-_type-id branch from a1d9f04 to 92542d7 Compare December 7, 2022 14:39
@mr-c mr-c enabled auto-merge (squash) December 7, 2022 14:39
@mr-c mr-c merged commit 941f9bc into main Dec 7, 2022
@mr-c mr-c deleted the dlang-fix-_type-id branch December 7, 2022 14:59
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.

2 participants