Skip to content

Commit

Permalink
Fix metaschema-java generated schema name and path for #200. (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-stein-nist authored Oct 18, 2023
1 parent 1246d8c commit daf3ed3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ protected List<Source> getOscalXmlSchemas() throws IOException {
List<Source> retval = new LinkedList<>();
retval.add(
ObjectUtils.requireNonNull(
XmlUtil.getStreamSource(OscalBindingContext.class.getResource("/schema/xml/oscal-component_schema.xsd"))));
XmlUtil.getStreamSource(OscalBindingContext.class.getResource("/schema/xml/oscal-component-definition_schema.xsd"))));
return CollectionUtil.unmodifiableList(retval);
}

@Override
protected JSONObject getOscalJsonSchema() {
return JsonSchemaContentValidator.toJsonObject(
ObjectUtils.requireNonNull(
OscalBindingContext.class.getResourceAsStream("/schema/json/oscal-component_schema.json")));
OscalBindingContext.class.getResourceAsStream("/schema/json/oscal-component-definition_schema.json")));
}
}

0 comments on commit daf3ed3

Please sign in to comment.