If we define something like
param:
type: double_array
description: "This param is supposed to be an array."
default_value: [0.0, 0.0, 0.0]
validation:
fixed_size<>: [3]
bounds<>: [0.0, 1000.0] # It should be element_bounds
If we provide
it will say "parameter 'param' has a invalid type: expected [double] got [double_array]".
If we provide
it will say "parameter 'param' has a invalid type: expected [double_array] got [double]"
The root cause is that in the parameter definition, validation section, it should use element_bounds instead of bounds. It would be nice if we can check the parameter type and validation method are compatible during compilation. Otherwise the error message is confusing.
If we define something like
If we provide
it will say "parameter 'param' has a invalid type: expected [double] got [double_array]".
If we provide
it will say "parameter 'param' has a invalid type: expected [double_array] got [double]"
The root cause is that in the parameter definition, validation section, it should use
element_boundsinstead ofbounds. It would be nice if we can check the parameter type and validation method are compatible during compilation. Otherwise the error message is confusing.