From 19ad132bb97aa12c591644f5e24ae3760aa66af1 Mon Sep 17 00:00:00 2001 From: Wendell Piez Date: Fri, 16 Aug 2019 15:39:49 -0400 Subject: [PATCH] Corrections to JSON Schema production now correct to current unit tests --- build/metaschema/json/json-schema-metamap.xsl | 80 ++++++++++++++++--- build/metaschema/json/pull-datatypes.xsl | 6 ++ 2 files changed, 74 insertions(+), 12 deletions(-) diff --git a/build/metaschema/json/json-schema-metamap.xsl b/build/metaschema/json/json-schema-metamap.xsl index 460b039366..7119cd3402 100644 --- a/build/metaschema/json/json-schema-metamap.xsl +++ b/build/metaschema/json/json-schema-metamap.xsl @@ -37,7 +37,7 @@ http://json-schema.org/draft-07/schema# - http://csrc.nist.gov/ns/oscal/{ $composed-metaschema/METASCHEMA/schema-version }/{ short-name }-schema.json + { $composed-metaschema/METASCHEMA/namespace }-schema.json { . }: JSON Schema @@ -66,6 +66,39 @@ + + + + http://json-schema.org/draft-07/schema# + { namespace }-schema.json + + { . }: JSON Schema + + + + object + + + + + + + + + #/definitions/{ @root } + + + + + + + + + + + + + + + @@ -220,18 +261,18 @@ - + - + @@ -245,8 +286,6 @@ string - @@ -314,7 +353,7 @@ match="assembly[empty(@max-occurs) or number(@max-occurs) = 1 ] | field[empty(@max-occurs) or number(@max-occurs)= 1 ]"> - + #/definitions/{ @ref } @@ -376,6 +415,23 @@ string + + + + string + + + array + + + string + + + 2 + + + + @@ -397,7 +453,7 @@ integer - 1.0 + @@ -434,9 +490,9 @@ string - date + - + ((2000|2400|2800|(19|2[0-9](0[48]|[2468][048]|[13579][26])))-02-29)|(((19|2[0-9])[0-9]{2})-02-(0[1-9]|1[0-9]|2[0-8]))|(((19|2[0-9])[0-9]{2})-(0[13578]|10|12)-(0[1-9]|[12][0-9]|3[01]))|(((19|2[0-9])[0-9]{2})-(0[469]|11)-(0[1-9]|[12][0-9]|30))(Z|[+-][0-9]{2}:[0-9]{2}) string diff --git a/build/metaschema/json/pull-datatypes.xsl b/build/metaschema/json/pull-datatypes.xsl index 5f7f22b2af..76e78f5d49 100644 --- a/build/metaschema/json/pull-datatypes.xsl +++ b/build/metaschema/json/pull-datatypes.xsl @@ -11,6 +11,8 @@ + + @@ -68,4 +70,8 @@ { @value } + + \ No newline at end of file