Search in sources :

Example 1 with OpenAPI3RouterFactoryImpl

use of io.vertx.ext.web.api.contract.openapi3.impl.OpenAPI3RouterFactoryImpl in project vertx-web by vert-x3.

the class OpenAPI3ParametersUnitTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    // Have to stop default server of WebTestBase
    stopServer();
    apiClient = new io.vertx.ext.web.api.contract.openapi3.ApiClient(webClient);
    routerFactory = new OpenAPI3RouterFactoryImpl(this.vertx, spec);
    routerFactory.setOptions(new RouterFactoryOptions().setRequireSecurityHandlers(false).setMountValidationFailureHandler(true).setValidationFailureHandler(generateFailureHandler()).setMountNotImplementedHandler(false));
}
Also used : RoutingContext(io.vertx.ext.web.RoutingContext) OpenAPI3RouterFactoryImpl(io.vertx.ext.web.api.contract.openapi3.impl.OpenAPI3RouterFactoryImpl) RouterFactoryOptions(io.vertx.ext.web.api.contract.RouterFactoryOptions)

Aggregations

RoutingContext (io.vertx.ext.web.RoutingContext)1 RouterFactoryOptions (io.vertx.ext.web.api.contract.RouterFactoryOptions)1 OpenAPI3RouterFactoryImpl (io.vertx.ext.web.api.contract.openapi3.impl.OpenAPI3RouterFactoryImpl)1