Class NullableParameterRule
java.lang.Object
io.micronaut.validation.routes.rules.NullableParameterRule
- All Implemented Interfaces:
RouteValidationRule
Validates route parameters are nullable or optional for optional
template variables.
- Since:
- 1.0
- Author:
- James Kleeh, graemerocher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvalidate(List<UriMatchTemplate> templates, ParameterElement[] parameters, MethodElement method) Validate the given uri templates and route arguments.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.validation.routes.rules.RouteValidationRule
validate
-
Constructor Details
-
NullableParameterRule
public NullableParameterRule()
-
-
Method Details
-
validate
public RouteValidationResult validate(List<UriMatchTemplate> templates, ParameterElement[] parameters, MethodElement method) Description copied from interface:RouteValidationRuleValidate the given uri templates and route arguments.- Specified by:
validatein interfaceRouteValidationRule- Parameters:
templates- The URI match templatesparameters- The route parametersmethod- The route method- Returns:
- A
RouteValidationResult
-