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

[21812 ] Add templated function to YamlWriter for supporting compact format #134

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

LuciaEchevarria99
Copy link
Contributor

This PR adds support for two YAML serialization formats (compact and extended) and includes the following key changes:

  • Addition of new templated function set(Yaml& yml, const T& value, const bool is_compact) is added to support writing values into YAML in either compact or extended format, based on the is_compact flag.

  • The functionality has also been applied to set_collection, allowing collections vectors to be serialized in both compact and extended formats.

  • Renaming of set with TagType: The function set(Yaml& yml, const TagType& tag, const T& value) has been renamed to set_in_tag(Yaml& yml, const TagType& tag, const T& value).

@codecov-commenter
Copy link

codecov-commenter commented Oct 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 37.86%. Comparing base (4b19122) to head (cf18205).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #134      +/-   ##
==========================================
+ Coverage   36.54%   37.86%   +1.32%     
==========================================
  Files         169      152      -17     
  Lines       11542     6956    -4586     
  Branches     5277     2764    -2513     
==========================================
- Hits         4218     2634    -1584     
+ Misses       4580     2937    -1643     
+ Partials     2744     1385    -1359     
Flag Coverage Δ
?

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@LuciaEchevarria99 LuciaEchevarria99 changed the title Add templated function to YamlWriter for supporting compact format [21812 ] Add templated function to YamlWriter for supporting compact format Oct 8, 2024
Copy link
Contributor

@juanlofer-eprosima juanlofer-eprosima left a comment

Choose a reason for hiding this comment

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

LGTM

@rsanchez15 rsanchez15 merged commit 97256ff into main Oct 11, 2024
16 of 17 checks passed
@rsanchez15 rsanchez15 deleted the feature/YamlWriter_compact branch October 11, 2024 11:33
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.

4 participants