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

[20274] Validate the YAML configuration file on parsing #113

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Tempate
Copy link
Contributor

@Tempate Tempate commented Jan 22, 2024

In this version, the DDS Recorder and the DDS Replayer throw a warning when a YAML tag is ignored to prevent typos, misplacements, and wrong configurations.

Merge after:

@@ -30,6 +31,14 @@ YamlReader::get<mcap::McapWriterOptions>(
const Yaml& yml,
const YamlReaderVersion version)
{
const std::set<TagType> tags = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment as in the Pipe, I would save all the sets in yaml_configuration_tags.hpp

Signed-off-by: tempate <danieldiaz@eprosima.com>

Validate YAML tags on parsing

Signed-off-by: tempate <danieldiaz@eprosima.com>

Validate new YAML options

Signed-off-by: tempate <danieldiaz@eprosima.com>

Make sets static

Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
Signed-off-by: tempate <danieldiaz@eprosima.com>
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.

None yet

2 participants