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
When validating an instance value which is out of bound for numerical range e.g., range=[0,10]) the error message is confusing.
For instance considering the model:
namespace test1
concept Foo1 {
o Integer a range=[0,10]
}
And instance:
{
"$class": "test1.Foo1",
"a": 15
}
The error uses the value rather than the upper bound in the message:
zsh-5.8$ ./index.js validate --model test1.cto --input test1.json
9:47:08 AM - INFO: Input is invalid
9:47:08 AM - ERROR: Validator error for field undefined test1.Foo1.a: Value is outside upper bound 15
Error: Validator error for field undefined test1.Foo1.a: Value is outside upper bound 15
Expected Behavior
A less confusing error message.
The text was updated successfully, but these errors were encountered:
Bug Report 🐛
When validating an instance value which is out of bound for numerical range e.g.,
range=[0,10]
) the error message is confusing.For instance considering the model:
And instance:
The error uses the value rather than the upper bound in the message:
Expected Behavior
A less confusing error message.
The text was updated successfully, but these errors were encountered: