From 087bdef375f95c24fdd65755529cf443fbc013a0 Mon Sep 17 00:00:00 2001 From: Wendell Piez Date: Mon, 10 Jun 2019 16:58:38 -0400 Subject: [PATCH] Completed work reflecting schema version in XSD and JSON schema (#57) --- build/metaschema/json/json-schema-metamap.xsl | 2 +- build/metaschema/lib/metaschema-check.sch | 2 +- build/metaschema/lib/metaschema.xsd | 4 ++++ build/metaschema/xml/produce-xsd.xsl | 4 +++- src/metaschema/oscal_catalog_metaschema.xml | 1 + 5 files changed, 10 insertions(+), 3 deletions(-) diff --git a/build/metaschema/json/json-schema-metamap.xsl b/build/metaschema/json/json-schema-metamap.xsl index 38f2154dfe..2eb712eb9c 100644 --- a/build/metaschema/json/json-schema-metamap.xsl +++ b/build/metaschema/json/json-schema-metamap.xsl @@ -33,7 +33,7 @@ http://json-schema.org/draft-07/schema# - http://csrc.nist.gov/ns/oscal/1.0/{ short-name }-schema.json + http://csrc.nist.gov/ns/oscal/{ $composed-metaschema/METASCHEMA/schema-version }/{ short-name }-schema.json { . }: JSON Schema diff --git a/build/metaschema/lib/metaschema-check.sch b/build/metaschema/lib/metaschema-check.sch index 7a928c3820..0d3ff211b7 100644 --- a/build/metaschema/lib/metaschema-check.sch +++ b/build/metaschema/lib/metaschema-check.sch @@ -114,6 +114,7 @@ METASCHEMA/@root should be one of + Metaschema schema version must be set for any top-level metaschema @@ -122,7 +123,6 @@ - Definition for assembly '' is not used. diff --git a/build/metaschema/lib/metaschema.xsd b/build/metaschema/lib/metaschema.xsd index 87ea44c7b7..d1a430fb63 100644 --- a/build/metaschema/lib/metaschema.xsd +++ b/build/metaschema/lib/metaschema.xsd @@ -12,6 +12,7 @@ + @@ -134,6 +135,9 @@ + + + diff --git a/build/metaschema/xml/produce-xsd.xsl b/build/metaschema/xml/produce-xsd.xsl index ebcd78e0cf..38aa5c7e1b 100644 --- a/build/metaschema/xml/produce-xsd.xsl +++ b/build/metaschema/xml/produce-xsd.xsl @@ -51,7 +51,9 @@ - + + + diff --git a/src/metaschema/oscal_catalog_metaschema.xml b/src/metaschema/oscal_catalog_metaschema.xml index 25e1bcd4ec..d0974c5309 100644 --- a/src/metaschema/oscal_catalog_metaschema.xml +++ b/src/metaschema/oscal_catalog_metaschema.xml @@ -10,6 +10,7 @@ root="catalog"> OSCAL Control Catalog Format + 1.0-M1 oscal-catalog http://csrc.nist.gov/ns/oscal/1.0