vertx / io.vertx.rxjava.ext.web.api.contract.openapi3

## Package io.vertx.rxjava.ext.web.api.contract.openapi3

### Types

OpenAPI3RequestValidationHandler | `open class OpenAPI3RequestValidationHandler : HTTPOperationRequestValidationHandler, Handler<RoutingContext>` NOTE: This class has been automatically generated from the io.vertx.ext.web.api.contract.openapi3.OpenAPI3RequestValidationHandler non RX-ified interface using Vert.x codegen.
OpenAPI3RouterFactory | `open class OpenAPI3RouterFactory : RouterFactory<OpenAPI>` Interface for OpenAPI3RouterFactory. To add an handler, use `io.vertx.rxjava.ext.web.api.contract.openapi3.OpenAPI3RouterFactory#addHandlerByOperationId`, in this class is better than generic If you want to use remember that you have to pass path as declared in openapi specification Usage example:
    OpenAPI3RouterFactory.createRouterFactoryFromFile(vertx, "src/resources/spec.yaml", asyncResult -> { if (!asyncResult.succeeded()) { // IO failure or spec invalid else { OpenAPI3RouterFactory routerFactory = asyncResult.result(); routerFactory.addHandlerByOperationId("operation_id", routingContext -> { // Do something }, routingContext -> { // Do something with failure handler }); Router router = routerFactory.getRouter(); } }); }
NOTE: This class has been automatically generated from the io.vertx.ext.web.api.contract.openapi3.OpenAPI3RouterFactory non RX-ified interface using Vert.x codegen.