Class: CustomValidator

vertx-web-api-contract-js/custom_validator~ CustomValidator

new CustomValidator()

This interface is used to add custom synchronous functions inside validation process. You can add it in
Source:

Methods

validate(routingContext)

This function have to be synchronous. It doesn't return nothing if validation succedes, otherwise it throws ValidationException.
Don't call routingContext.next() or routingContext.fail() from this function
Parameters:
Name Type Description
routingContext RoutingContext the actual routing context
Source: