File tree 2 files changed +10
-0
lines changed
tools/src/test/java/org/cyclonedx/schema
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ class JsonSchemaVerificationTest extends BaseSchemaVerificationTest {
53
53
private static final JsonSchema VERSION_14 ;
54
54
private static final JsonSchema VERSION_15 ;
55
55
private static final JsonSchema VERSION_16 ;
56
+ private static final JsonSchema VERSION_17 ;
56
57
57
58
static {
58
59
JsonMetaSchemaFactory metaSchemaFactory = new DefaultJsonMetaSchemaFactory () {
@@ -75,6 +76,7 @@ public JsonMetaSchema getMetaSchema(
75
76
VERSION_14 = factory .getSchema (SchemaLocation .of ("classpath:bom-1.4.schema.json" ));
76
77
VERSION_15 = factory .getSchema (SchemaLocation .of ("classpath:bom-1.5.schema.json" ));
77
78
VERSION_16 = factory .getSchema (SchemaLocation .of ("classpath:bom-1.6.schema.json" ));
79
+ VERSION_17 = factory .getSchema (SchemaLocation .of ("classpath:bom-1.7.schema.json" ));
78
80
}
79
81
80
82
private static JsonMetaSchema addCustomKeywords (JsonMetaSchema metaSchema ) {
@@ -134,6 +136,9 @@ private JsonSchema getSchema(String resourceName) {
134
136
if (resourceName .endsWith ("-1.6.json" )) {
135
137
return VERSION_16 ;
136
138
}
139
+ if (resourceName .endsWith ("-1.7.json" )) {
140
+ return VERSION_17 ;
141
+ }
137
142
return null ;
138
143
}
139
144
}
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ public class XmlSchemaVerificationTest extends BaseSchemaVerificationTest {
40
40
private static final Schema VERSION_14 ;
41
41
private static final Schema VERSION_15 ;
42
42
private static final Schema VERSION_16 ;
43
+ private static final Schema VERSION_17 ;
43
44
44
45
static {
45
46
try {
@@ -57,6 +58,7 @@ public class XmlSchemaVerificationTest extends BaseSchemaVerificationTest {
57
58
VERSION_14 = factory .newSchema (cl .getResource ("bom-1.4.xsd" ));
58
59
VERSION_15 = factory .newSchema (cl .getResource ("bom-1.5.xsd" ));
59
60
VERSION_16 = factory .newSchema (cl .getResource ("bom-1.6.xsd" ));
61
+ VERSION_17 = factory .newSchema (cl .getResource ("bom-1.7.xsd" ));
60
62
} catch (SAXException e ) {
61
63
throw new IllegalStateException (e );
62
64
}
@@ -146,6 +148,9 @@ private Schema getSchema(String resourceName) {
146
148
if (resourceName .endsWith ("-1.6.xml" )) {
147
149
return VERSION_16 ;
148
150
}
151
+ if (resourceName .endsWith ("-1.7.xml" )) {
152
+ return VERSION_17 ;
153
+ }
149
154
return null ;
150
155
}
151
156
}
You can’t perform that action at this time.
0 commit comments