@@ -43,9 +43,33 @@ void validateExamples() {
4343 res .stream ().forEach (str -> log .info (str ));
4444 Assert .assertTrue (res .isEmpty ());
4545 }
46+
47+ if (content .replace (" " , "" ).contains ("testapi\" :\" 1.1\" " )) {
48+ List <String > res = jsonValidator .validateSchema (content , "OpenTestApiSchema_v1.1.json" , true );
49+ res .stream ().forEach (str -> log .info (str ));
50+ Assert .assertTrue (res .isEmpty ());
51+ }
52+
53+ if (content .replace (" " , "" ).contains ("testapi\" :\" 1.2\" " )) {
54+ List <String > res = jsonValidator .validateSchema (content , "OpenTestApiSchema_v1.2.json" , true );
55+ res .stream ().forEach (str -> log .info (str ));
56+ Assert .assertTrue (res .isEmpty ());
57+ }
58+
59+ if (content .replace (" " , "" ).contains ("testapi\" :\" 1.3\" " )) {
60+ List <String > res = jsonValidator .validateSchema (content , "OpenTestApiSchema_v1.3.json" , true );
61+ res .stream ().forEach (str -> log .info (str ));
62+ Assert .assertTrue (res .isEmpty ());
63+ }
64+
65+ if (content .replace (" " , "" ).contains ("testapi\" :\" 1.4\" " )) {
66+ List <String > res = jsonValidator .validateSchema (content , "OpenTestApiSchema_v1.4.json" , true );
67+ res .stream ().forEach (str -> log .info (str ));
68+ Assert .assertTrue (res .isEmpty ());
69+ }
4670
47- //1.1 should be compatible and work for all
48- List <String > res = jsonValidator .validateSchema (content , "OpenTestApiSchema_v1.1 .json" , true );
71+ //1.5 should be compatible and work for all
72+ List <String > res = jsonValidator .validateSchema (content , "OpenTestApiSchema_v1.5 .json" , true );
4973 res .stream ().forEach (str -> log .info (str ));
5074 Assert .assertTrue (res .isEmpty ());
5175 }
0 commit comments