You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the extension jsonschema:
The error message while checking the maximum value does not contain the actual maximum value.
Instead the current value is printed twice.
Error message if the maximum value is surpassed:
"#/latitude: 1152.37392 exceeds maximum of 1152.373920"
Expected:
"#/latitude: 1152.37392 exceeds maximum of 90.0000" << 90 is the maximum value defined in the schema
Solution:
in function do_validate in class maximum_validator in file keywords.hpp
if (value > value_)
{
reporter.error(validation_output("maximum",
this->schema_path(),
instance_location.to_uri_fragment(),
instance.template as<std::string>() + " exceeds maximum of " + std::to_string(value)));
}
change std::to_string(value) to std::to_string(value_)
thanks for this great Framework
The text was updated successfully, but these errors were encountered:
In the extension jsonschema:
The error message while checking the maximum value does not contain the actual maximum value.
Instead the current value is printed twice.
Error message if the maximum value is surpassed:
"#/latitude: 1152.37392 exceeds maximum of 1152.373920"
Expected:
"#/latitude: 1152.37392 exceeds maximum of 90.0000" << 90 is the maximum value defined in the schema
Solution:
in function do_validate in class maximum_validator in file keywords.hpp
change std::to_string(value) to std::to_string(value_)
thanks for this great Framework
The text was updated successfully, but these errors were encountered: