File tree Expand file tree Collapse file tree
src/test/java/org/opentesting/modultest/jsonvalidation Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments