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
Describe the bug
When using variable interpolation using expression language (EL) in messages, an exception is thrown where the property that is used in the evaluation of the expression is not found so the EL part of the message does not get interpolated.
Exception thrown in the ElTermResolver#interpolate(...) method:
javax.el.PropertyNotFoundException: ELResolver cannot handle a null base Object with identifier 'inclusive'
To Reproduce
An example where this happens is in @DecimalMin (or @DecimalMax) that has the default messages:
graphql.validation.DecimalMax.message={path} must be less than ${inclusive == true ? 'or equal to ' : ''}{value}
graphql.validation.DecimalMin.message={path} must be greater than ${inclusive == true ? 'or equal to ' : ''}{value}
Describe the bug
When using variable interpolation using expression language (EL) in messages, an exception is thrown where the property that is used in the evaluation of the expression is not found so the EL part of the message does not get interpolated.
Exception thrown in the
ElTermResolver#interpolate(...)
method:To Reproduce
An example where this happens is in
@DecimalMin
(or@DecimalMax
) that has the default messages:For example, this GraphQL mutation with inputs:
When passing in an invalid value like
1
, will generate the following error message:The
{path}
and{value}
are getting interpolated, but not the EL.The text was updated successfully, but these errors were encountered: