Skip to content

Commit

Permalink
Merge pull request #31302 from jehrenzweig-leagueapps/#31197
Browse files Browse the repository at this point in the history
Updated OpenAPI `mp.openapi.extensions.smallrye.openapi` key mapping
  • Loading branch information
phillip-kruger authored Feb 21, 2023
2 parents 91b044b + 1923db4 commit 394f1eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class ConfigMappingTest {
.withApplicationRoot((jar) -> jar
.addClasses(DefaultContentTypeResource.class, Greeting.class)

.addAsResource(new StringAsset("quarkus.smallrye-openapi.open-api-version=3.0.3\n"
.addAsResource(new StringAsset("quarkus.smallrye-openapi.open-api-version=3.0.2\n"
+ "quarkus.smallrye-openapi.servers=http:\\//www.server1.com,http:\\//www.server2.com\n"
+ "quarkus.smallrye-openapi.info-title=My API\n"
+ "quarkus.smallrye-openapi.info-version=1.2.3\n"
Expand All @@ -37,7 +37,7 @@ public void testOpenApiPathAccessResource() {
.then()
.log().body().and()
.body("openapi",
Matchers.equalTo("3.0.3"))
Matchers.equalTo("3.0.2"))
.body("servers[0].url",
Matchers.startsWith("http://www.server"))
.body("servers[1].url",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public Iterator<String> iterateNames(final ConfigSourceInterceptorContext contex

private static Map<String, String> relocations() {
Map<String, String> relocations = new HashMap<>();
mapKey(relocations, io.smallrye.openapi.api.constants.OpenApiConstants.OPEN_API_VERSION, QUARKUS_OPEN_API_VERSION);
mapKey(relocations, io.smallrye.openapi.api.constants.OpenApiConstants.VERSION, QUARKUS_OPEN_API_VERSION);
mapKey(relocations, org.eclipse.microprofile.openapi.OASConfig.SERVERS, QUARKUS_SERVERS);
mapKey(relocations, io.smallrye.openapi.api.constants.OpenApiConstants.INFO_TITLE, QUARKUS_INFO_TITLE);
mapKey(relocations, io.smallrye.openapi.api.constants.OpenApiConstants.INFO_VERSION, QUARKUS_INFO_VERSION);
Expand Down

0 comments on commit 394f1eb

Please sign in to comment.