Package 

Object Validate.Instance

    • 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.
      • Methods inherited from class io.github.cdimascio.openapi.Validate.Instance

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.