Skip to content

Commit

Permalink
Minor fixes to YAML version
Browse files Browse the repository at this point in the history
Signed-off-by: tempate <[email protected]>
  • Loading branch information
Tempate committed Nov 7, 2023
1 parent be486bc commit eb78b59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ version: v4.0

participants:



- name: Simple_Participant
kind: local
domain: 0
Expand Down
14 changes: 7 additions & 7 deletions ddsrouter_yaml/src/cpp/YamlReaderConfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@ YamlReaderConfiguration::load_ddsrouter_configuration(

switch (version)
{
case ddspipe::yaml::YamlReaderVersion::V_4_0:
case ddspipe::yaml::YamlReaderVersion::LATEST:
break;

case ddspipe::yaml::YamlReaderVersion::V_1_0:
case ddspipe::yaml::YamlReaderVersion::V_2_0:
case ddspipe::yaml::YamlReaderVersion::V_3_0:
case ddspipe::yaml::YamlReaderVersion::V_3_1:
default:

throw eprosima::utils::ConfigurationException(
utils::Formatter() <<
"The specified yaml configuration version is no longer supported. Please update to v4.0.");
break;

case ddspipe::yaml::YamlReaderVersion::V_4_0:
default:

"The yaml configuration version " << version << " is no longer supported. Please update to v4.0.");
break;
}
}
Expand Down Expand Up @@ -111,7 +111,7 @@ YamlReaderConfiguration::load_ddsrouter_configuration_from_file(

ddspipe::yaml::YamlReaderVersion YamlReaderConfiguration::default_yaml_version()
{
return ddspipe::yaml::V_3_1;
return ddspipe::yaml::V_4_0;
}

} // namespace yaml
Expand Down

0 comments on commit eb78b59

Please sign in to comment.