Skip to content

Conversation

@SGSSGene
Copy link
Contributor

@SGSSGene SGSSGene commented Dec 2, 2024

Currently, types of 'any' are simply ignored when generating output. This improves the handling of 'any' by adding explicit conversions to:

  • float
  • double
  • char
  • int8_t
  • uint8_t
  • int16_t
  • uint16_t
  • int32_t
  • uint32_t
  • int64_t
  • uint64_t and
  • std::string

required to fix deNBI-cibi/tool_description_lib#59

also uploaded a new generated version to: common-workflow-lab/cwl-cpp-auto#11

@mr-c mr-c changed the title feat: improved support of fields of type 'any' cppgen: improved support of fields of type 'any' Dec 2, 2024
Copy link
Member

@mr-c mr-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @SGSSGene ! Can you fix the unit-test errors? Looks like the examples in https://github.com/common-workflow-language/schema_salad/tree/main/schema_salad/tests/cpp_tests need to be refreshed with the new syntax

SGSSGene and others added 2 commits December 4, 2024 09:50
Currently, types of 'any' are simply ignored when generating output.
This improves the handling of 'any' by adding explicit conversions to:

- float
- double
- char
- int8_t
- uint8_t
- int16_t
- uint16_t
- int32_t
- uint32_t
- int64_t
- uint64_t
and
- std::string

required to fix deNBI-cibi/tool_description_lib#59
@codecov
Copy link

codecov bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.14%. Comparing base (7e6d44d) to head (1522bfc).
Report is 28 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #893   +/-   ##
=======================================
  Coverage   83.14%   83.14%           
=======================================
  Files          22       22           
  Lines        4900     4900           
  Branches     1178     1178           
=======================================
  Hits         4074     4074           
  Misses        548      548           
  Partials      278      278           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mr-c mr-c merged commit 62ef6fe into common-workflow-language:main Dec 4, 2024
25 checks passed
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.

Support and export default values on the CWL side

2 participants