Skip to content

Commit 89ac64b

Browse files
expect openapi version 3.1.x
1 parent 8164b10 commit 89ac64b

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

tck/src/main/java/org/eclipse/microprofile/openapi/tck/AirlinesAppTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static WebArchive createDeployment() {
6161
@Test(dataProvider = "formatProvider")
6262
public void testVersion(String type) {
6363
ValidatableResponse vr = callEndpoint(type);
64-
vr.body("openapi", startsWith("3.0."));
64+
vr.body("openapi", startsWith("3.1."));
6565
}
6666

6767
@Test(dataProvider = "formatProvider")

tck/src/main/java/org/eclipse/microprofile/openapi/tck/ModelReaderAppTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static WebArchive createDeployment() {
5454
@Test(dataProvider = "formatProvider")
5555
public void testVersion(String type) {
5656
ValidatableResponse vr = callEndpoint(type);
57-
vr.body("openapi", startsWith("3.0."));
57+
vr.body("openapi", startsWith("3.1."));
5858
}
5959

6060
@Test(dataProvider = "formatProvider")

tck/src/main/java/org/eclipse/microprofile/openapi/tck/OASConfigScanClassBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public abstract class OASConfigScanClassBase extends AppTestBase {
3333
@Test(dataProvider = "formatProvider")
3434
public void testScanClass(String type) throws InterruptedException {
3535
vr = callEndpoint(type);
36-
vr.body("openapi", startsWith("3.0."));
36+
vr.body("openapi", startsWith("3.1."));
3737
vr.body("paths", aMapWithSize(5));
3838
vr.body("paths", hasKey("/reviews"));
3939
vr.body("paths", hasKey("/reviews/{id}"));

tck/src/main/java/org/eclipse/microprofile/openapi/tck/OASConfigScanDisableTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static WebArchive createDeployment() {
4040
@Test(dataProvider = "formatProvider")
4141
public void testScanDisable(String type) throws InterruptedException {
4242
vr = callEndpoint(type);
43-
vr.body("openapi", startsWith("3.0."));
43+
vr.body("openapi", startsWith("3.1."));
4444
vr.body("info", notNullValue());
4545
vr.body("info.title", notNullValue());
4646
vr.body("info.version", notNullValue());

tck/src/main/java/org/eclipse/microprofile/openapi/tck/PetStoreAppTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public void testDefaultResponseType() {
194194
.assertThat()
195195
.statusCode(200)
196196
.and()
197-
.body("openapi", startsWith("3.0."));
197+
.body("openapi", startsWith("3.1."));
198198
}
199199

200200
@Test(dataProvider = "formatProvider")

tck/src/main/java/org/eclipse/microprofile/openapi/tck/StaticDocumentTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static WebArchive createDeployment() {
4747
public void testStaticDocument(String type) {
4848
ValidatableResponse vr = callEndpoint(type);
4949

50-
vr.body("openapi", startsWith("3.0."));
50+
vr.body("openapi", startsWith("3.1."));
5151

5252
vr.body("servers", hasSize(1));
5353
vr.body("servers.find{ it.description == 'MySimpleAPI' }.url",

0 commit comments

Comments
 (0)