Skip to content

Commit 255f2d1

Browse files
committed
api 1.6 implementation
1 parent 26e56dc commit 255f2d1

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</parent>
1111
<groupId>org.opentesting</groupId>
1212
<artifactId>impl_java</artifactId>
13-
<version>1.43</version>
13+
<version>1.44</version>
1414
<name>impl_java</name>
1515
<description>open testing implementation spring boot</description>
1616

src/test/java/org/opentesting/modultest/jsonvalidation/JsonValidationTests.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,15 @@ void validateExamples() {
6767
res.stream().forEach(str -> log.info(str));
6868
Assert.assertTrue(res.isEmpty());
6969
}
70+
71+
if (content.replace(" ", "").contains("testapi\":\"1.5\"")) {
72+
List<String> res = jsonValidator.validateSchema(content, "OpenTestApiSchema_v1.5.json", true);
73+
res.stream().forEach(str -> log.info(str));
74+
Assert.assertTrue(res.isEmpty());
75+
}
7076

71-
//1.5 should be compatible and work for all
72-
List<String> res = jsonValidator.validateSchema(content, "OpenTestApiSchema_v1.5.json", true);
77+
//1.6 should be compatible and work for all
78+
List<String> res = jsonValidator.validateSchema(content, "OpenTestApiSchema_v1.6.json", true);
7379
res.stream().forEach(str -> log.info(str));
7480
Assert.assertTrue(res.isEmpty());
7581
}

0 commit comments

Comments
 (0)