Skip to content

Commit 52d3572

Browse files
authored
[4.x] Allow SE users work with OpenApiFeature instead of SeOpenApiFeature (helidon-io#7103)
1 parent 1fb440c commit 52d3572

20 files changed

Lines changed: 36 additions & 41 deletions

File tree

examples/quickstarts/helidon-quickstart-se/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
<artifactId>helidon-metrics</artifactId>
5959
</dependency>
6060
<dependency>
61-
<groupId>io.helidon.nima.openapi</groupId>
62-
<artifactId>helidon-nima-openapi</artifactId>
61+
<groupId>io.helidon.openapi</groupId>
62+
<artifactId>helidon-openapi</artifactId>
6363
</dependency>
6464
<dependency>
6565
<groupId>io.helidon.config</groupId>

examples/quickstarts/helidon-quickstart-se/src/main/java/io/helidon/examples/quickstart/se/Main.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818

1919
import io.helidon.logging.common.LogConfig;
2020
import io.helidon.nima.observe.ObserveFeature;
21-
import io.helidon.nima.openapi.SeOpenApiFeature;
2221
import io.helidon.nima.webserver.WebServer;
2322
import io.helidon.nima.webserver.http.HttpRouting;
23+
import io.helidon.openapi.OpenApiFeature;
2424

2525
/**
2626
* The application main class.
@@ -54,7 +54,7 @@ public static void main(String[] args) {
5454
* Updates HTTP Routing and registers observe providers.
5555
*/
5656
static void routing(HttpRouting.Builder routing) {
57-
SeOpenApiFeature openApi = SeOpenApiFeature.builder().build();
57+
OpenApiFeature openApi = OpenApiFeature.builder().build();
5858
GreetService greetService = new GreetService();
5959
routing.addFeature(openApi)
6060
.register("/greet", greetService)

microprofile/openapi/src/main/java/io/helidon/microprofile/openapi/MpOpenApiFeature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class MpOpenApiFeature extends OpenApiFeature {
5858
*
5959
* @return new builder
6060
*/
61-
static MPOpenAPIBuilder builder() {
61+
public static MPOpenAPIBuilder builder() {
6262
return new MPOpenAPIBuilder();
6363
}
6464

nima/openapi/src/test/java/io/helidon/nima/openapi/test/MyModelReader.java renamed to microprofile/openapi/src/test/java/io/helidon/microprofile/openapi/test/MyModelReader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2022 Oracle and/or its affiliates.
2+
* Copyright (c) 2019, 2023 Oracle and/or its affiliates.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package io.helidon.nima.openapi.test;
16+
package io.helidon.microprofile.openapi.test;
1717

1818
import org.eclipse.microprofile.openapi.OASFactory;
1919
import org.eclipse.microprofile.openapi.OASModelReader;

nima/openapi/src/test/java/io/helidon/nima/openapi/test/MySimpleFilter.java renamed to microprofile/openapi/src/test/java/io/helidon/microprofile/openapi/test/MySimpleFilter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2022 Oracle and/or its affiliates.
2+
* Copyright (c) 2019, 2023 Oracle and/or its affiliates.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package io.helidon.nima.openapi.test;
16+
package io.helidon.microprofile.openapi.test;
1717

1818
import java.util.Map;
1919

nima/openapi/src/test/resources/openapi-greeting.yml renamed to microprofile/openapi/src/test/resources/openapi-greeting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2019, 2022 Oracle and/or its affiliates.
2+
# Copyright (c) 2019, 2023 Oracle and/or its affiliates.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

nima/openapi/src/test/resources/openapi-time-server.yml renamed to microprofile/openapi/src/test/resources/openapi-time-server.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2019, 2022 Oracle and/or its affiliates.
2+
# Copyright (c) 2019, 2023 Oracle and/or its affiliates.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
File renamed without changes.

nima/openapi/src/test/resources/petstore.yaml renamed to microprofile/openapi/src/test/resources/petstore.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2020, 2022 Oracle and/or its affiliates.
2+
# Copyright (c) 2020, 2023 Oracle and/or its affiliates.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

nima/openapi/src/test/resources/serverCORSRestricted.yaml renamed to microprofile/openapi/src/test/resources/serverCORSRestricted.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2020, 2022 Oracle and/or its affiliates.
2+
# Copyright (c) 2020, 2023 Oracle and/or its affiliates.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)