-
public class Validate.InstanceThe validate instance
-
-
Field Summary
Fields Modifier and Type Field Description public final static Validate.InstanceINSTANCE
-
Method Summary
Modifier and Type Method Description final Validate<ValidationError>configure(String openApiSwaggerPath)Configures the Validator with the Swagger 2 or OpenApi specification located at openApiSwaggerPath The Swagger 2 or OpenApi 3 specification file may be represented as YAML or JSON. final <T extends Any> Validate<T>configure(String openApiSwaggerPath, Function3<ServerRequest, HttpStatus, List<String>, T> errorHandler)Configures the Validator with the Swagger 2 or OpenApi specification located at openApiSwaggerPath and a custom errorHandler. final <T extends Any> Validate<T>configure(String openApiSwaggerPath, Function0<ObjectMapper> objectMapperFactory, Function3<ServerRequest, HttpStatus, List<String>, T> errorHandler)Configures the Validator with the Swagger 2 or OpenApi specification located at openApiSwaggerPath, using custom objectMapperFactory and a custom errorHandler. -
-
Method Detail
-
configure
final Validate<ValidationError> configure(String openApiSwaggerPath)
Configures the Validator with the Swagger 2 or OpenApi specification located at openApiSwaggerPath The Swagger 2 or OpenApi 3 specification file may be represented as YAML or JSON.
-
configure
final <T extends Any> Validate<T> configure(String openApiSwaggerPath, Function3<ServerRequest, HttpStatus, List<String>, T> errorHandler)
Configures the Validator with the Swagger 2 or OpenApi specification located at openApiSwaggerPath and a custom errorHandler. The specification file may be represented as YAML or JSON.
-
configure
final <T extends Any> Validate<T> configure(String openApiSwaggerPath, Function0<ObjectMapper> objectMapperFactory, Function3<ServerRequest, HttpStatus, List<String>, T> errorHandler)
Configures the Validator with the Swagger 2 or OpenApi specification located at openApiSwaggerPath, using custom objectMapperFactory and a custom errorHandler. The specification file may be represented as YAML or JSON.
-
-
-
-