Skip to content

Commit c4a4525

Browse files
committed
Fix for usage in vertx-web-openapi-router tests
1 parent 7e237cc commit c4a4525

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/main/java/io/vertx/openapi/contract/impl/OpenAPIContractImpl.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ public class OpenAPIContractImpl implements OpenAPIContract {
7171
// VisibleForTesting
7272
final String basePath;
7373

74+
// Used by vertx-web-openapi-router tests
75+
public OpenAPIContractImpl(JsonObject resolvedSpec, OpenAPIVersion version, SchemaRepository schemaRepository) {
76+
this(resolvedSpec, version, schemaRepository, MediaTypeRegistry.createDefault());
77+
}
78+
7479
public OpenAPIContractImpl(JsonObject resolvedSpec, OpenAPIVersion version, SchemaRepository schemaRepository,
7580
MediaTypeRegistry mediaTypeRegistry) {
7681
this.rawContract = resolvedSpec;

src/main/java/module-info.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717

1818
exports io.vertx.openapi.impl to io.vertx.tests;
1919
exports io.vertx.openapi.validation.impl to io.vertx.tests;
20-
exports io.vertx.openapi.contract.impl to io.vertx.tests;
21-
22-
opens io.vertx.openapi.validation.impl to io.vertx.tests;
23-
exports io.vertx.openapi.mediatype.impl;
20+
exports io.vertx.openapi.contract.impl to io.vertx.tests, io.vertx.web.openapi.router.tests;
21+
exports io.vertx.openapi.mediatype.impl to io.vertx.tests;
2422

2523
}

0 commit comments

Comments
 (0)