From de0a6bd912a81ecfd4f4e99c1c10fd502e4b103e Mon Sep 17 00:00:00 2001 From: "A.J. Stein" Date: Fri, 6 Jan 2023 12:07:47 -0500 Subject: [PATCH] Transform generates suggestive anyOf for allow-other='yes'. --- .../schema-gen/make-json-schema-metamap.xsl | 133 ++---------------- 1 file changed, 12 insertions(+), 121 deletions(-) diff --git a/toolchains/xslt-M4/schema-gen/make-json-schema-metamap.xsl b/toolchains/xslt-M4/schema-gen/make-json-schema-metamap.xsl index a49102056..ff22c30fe 100644 --- a/toolchains/xslt-M4/schema-gen/make-json-schema-metamap.xsl +++ b/toolchains/xslt-M4/schema-gen/make-json-schema-metamap.xsl @@ -30,11 +30,6 @@ - - - @@ -241,9 +236,6 @@ - - - @@ -301,24 +293,6 @@ - - - @@ -371,6 +345,16 @@ + + + + + + + + + + @@ -388,44 +372,6 @@ - - - - - { @_in-json-name } @@ -440,7 +386,6 @@ - @@ -683,73 +628,19 @@ - - - - - string ^((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))T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(\.[0-9]+)?(Z|[+-][0-9]{2}:[0-9]{2})?$ - - + string date-time ^((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))T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(\.[0-9]+)?(Z|[+-][0-9]{2}:[0-9]{2})$ - + string email ^.+@.+$ - -