Skip to content

Commit 5641a9b

Browse files
committed
Add codestart for the server extension - issue #1021
1 parent c9e9276 commit 5641a9b

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
quarkus.openapi.generator.spec=openapi.yml

server/integration-tests/codestarts/src/test/java/io/quarkiverse/openapi/server/generator/it/QuarkusOpenAPIGeneratorServerCodestartsTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ void testContent() throws Throwable {
1818
codestartTest
1919
.assertThatGeneratedFile(QuarkusCodestartCatalog.Language.JAVA, "src/main/resources/application.properties")
2020
.content()
21-
.contains("quarkus.openapi.generator.spec=openapi_yml");
21+
.contains("quarkus.openapi.generator.spec=openapi.yml");
22+
// codestartTest
23+
// .assertThatGeneratedFile(QuarkusCodestartCatalog.Language.JAVA, "src/main/resources/openapi/openapi.yml")
24+
// .content()
25+
// .contains("title: Generated API");
2226
}
2327
}

server/runtime/src/main/codestarts/quarkus/openapi-generator-codestart/java/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ quarkus:
22
openapi:
33
generator:
44
spec:
5-
openapi_yml
5+
openapi.yml

0 commit comments

Comments
 (0)