Skip to content
This repository was archived by the owner on Oct 30, 2023. It is now read-only.

Commit ebb060b

Browse files
committed
naming cleanup
1 parent afb634a commit ebb060b

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

java/java-dropwizard/src/main/java/io/swagger/sample/SwaggerSampleApplication.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import io.dropwizard.setup.Bootstrap;
77
import io.dropwizard.setup.Environment;
88
import io.swagger.jaxrs2.integration.resources.OpenApiResource;
9-
import io.swagger.oas.integration.OpenApiConfiguration;
9+
import io.swagger.oas.integration.OpenApiConfigurationImpl;
1010
import io.swagger.oas.models.OpenAPI;
1111
import io.swagger.oas.models.info.Contact;
1212
import io.swagger.oas.models.info.Info;
@@ -46,8 +46,8 @@ public void run(SwaggerSampleConfiguration configuration, Environment environmen
4646
.url("http://www.apache.org/licenses/LICENSE-2.0.html"));
4747

4848
oas.info(info);
49-
OpenApiConfiguration oasConfig = new OpenApiConfiguration()
50-
.openApi(oas)
49+
OpenApiConfigurationImpl oasConfig = new OpenApiConfigurationImpl()
50+
.openAPI(oas)
5151
.prettyPrint(true)
5252
.resourcePackages(Stream.of("io.swagger.sample.resource").collect(Collectors.toSet()));
5353

@@ -64,6 +64,7 @@ public void run(SwaggerSampleConfiguration configuration, Environment environmen
6464
} catch (OpenApiConfigurationException e) {
6565
e.printStackTrace();
6666
}
67+
environment.jersey().register(new OpenApiResource());
6768
*/
6869

6970
// or

java/java-jersey2/src/main/java/io/swagger/sample/Bootstrap.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package io.swagger.sample;
22

33
import io.swagger.jaxrs2.integration.JaxrsOpenApiContextBuilder;
4-
import io.swagger.oas.integration.OpenApiConfiguration;
4+
import io.swagger.oas.integration.OpenApiConfigurationImpl;
55
import io.swagger.oas.integration.OpenApiConfigurationException;
66
import io.swagger.oas.models.OpenAPI;
77
import io.swagger.oas.models.info.Contact;
@@ -32,8 +32,8 @@ public void init(ServletConfig config) throws ServletException {
3232
.url("http://www.apache.org/licenses/LICENSE-2.0.html"));
3333

3434
oas.info(info);
35-
OpenApiConfiguration oasConfig = new OpenApiConfiguration()
36-
.openApi(oas)
35+
OpenApiConfigurationImpl oasConfig = new OpenApiConfigurationImpl()
36+
.openAPI(oas)
3737
.resourcePackages(Stream.of("io.swagger.sample.resource").collect(Collectors.toSet()));
3838

3939

java/java-jersey2/src/main/resources/openapi-configuration.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"io.swagger.sample.resource"
44
],
55
"prettyPrint" : true,
6-
"openApi": {
6+
"openAPI": {
77
"info": {
88
"version": "1.0",
99
"title": "Swagger Pet Sample App",

0 commit comments

Comments
 (0)