Skip to content

Commit c528552

Browse files
Updated openapi example
Signed-off-by: francesco <[email protected]>
1 parent a7ee1e2 commit c528552

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web-examples/src/main/java/io/vertx/example/web/openapi3/OpenAPI3Server.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import io.vertx.ext.web.Router;
1111
import io.vertx.ext.web.api.RequestParameter;
1212
import io.vertx.ext.web.api.RequestParameters;
13-
import io.vertx.ext.web.api.contract.DesignDrivenRouterFactoryOptions;
13+
import io.vertx.ext.web.api.contract.RouterFactoryOptions;
1414
import io.vertx.ext.web.api.contract.openapi3.OpenAPI3RouterFactory;
1515
import io.vertx.ext.web.api.validation.ValidationException;
1616

@@ -65,7 +65,7 @@ public void start(Future future) {
6565
});
6666

6767
// Before router creation you can enable/disable various router factory behaviours
68-
DesignDrivenRouterFactoryOptions factoryOptions = new DesignDrivenRouterFactoryOptions()
68+
RouterFactoryOptions factoryOptions = new RouterFactoryOptions()
6969
.setMountValidationFailureHandler(false) // Disable mounting of dedicated validation failure handler
7070
.setMountResponseContentTypeHandler(true); // Mount ResponseContentTypeHandler automatically
7171

0 commit comments

Comments
 (0)