Skip to content

Commit e8e64d0

Browse files
author
tempate
committed
Validate new YAML options
Signed-off-by: tempate <[email protected]>
1 parent 0004cb6 commit e8e64d0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ddsrouter_yaml/src/cpp/YamlReader_configuration.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ bool YamlValidator::validate<ddsrouter::core::SpecsConfiguration>(
105105
NUMBER_THREADS_TAG,
106106
REMOVE_UNUSED_ENTITIES_TAG,
107107
SPECS_QOS_TAG,
108-
DISCOVERY_TRIGGER_TAG};
108+
DISCOVERY_TRIGGER_TAG,
109+
LOG_CONFIGURATION_TAG,
110+
MONITOR_TAG};
109111

110112
return YamlValidator::validate_tags(yml, tags);
111113
}
@@ -241,6 +243,9 @@ core::DdsPipeConfiguration YamlReader::get<core::DdsPipeConfiguration>(
241243
const Yaml& yml,
242244
const YamlReaderVersion version)
243245
{
246+
// The DdsPipeConfiguration's fields don't correspond to a YAML section and, therefore, can't be validated.
247+
// Instead, they are validated in the methods above (most of them in the DdsRouterConfiguration).
248+
244249
core::DdsPipeConfiguration object;
245250
fill<core::DdsPipeConfiguration>(object, yml, version);
246251
return object;

0 commit comments

Comments
 (0)