Skip to content

Commit

Permalink
Allow only let in constraint for metaschema module for usnistgov#548
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-stein-nist committed Mar 15, 2024
1 parent 0954786 commit b471a22
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions schema/metaschema/metaschema-module-metaschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -837,12 +837,10 @@
<define-assembly name="assembly-constraints">
<use-name>constraint</use-name>
<model>
<assembly ref="constraint-let-expression" max-occurs="unbounded">
<group-as name="lets" in-json="ARRAY"/>
</assembly>
<choice-group min-occurs="1" max-occurs="unbounded">
<group-as name="rules" in-json="ARRAY"/>
<discriminator>object-type</discriminator>
<assembly ref="constraint-let-expression"/>
<assembly ref="targeted-allowed-values-constraint"/>
<assembly ref="targeted-expect-constraint"/>
<assembly ref="targeted-index-has-key-constraint"/>
Expand All @@ -857,12 +855,10 @@
<define-assembly name="field-constraints">
<use-name>constraint</use-name>
<model>
<assembly ref="constraint-let-expression" max-occurs="unbounded">
<group-as name="lets" in-json="ARRAY"/>
</assembly>
<choice-group min-occurs="1" max-occurs="unbounded">
<group-as name="rules" in-json="ARRAY"/>
<discriminator>object-type</discriminator>
<assembly ref="constraint-let-expression"/>
<assembly ref="targeted-allowed-values-constraint"/>
<assembly ref="targeted-expect-constraint"/>
<assembly ref="targeted-index-has-key-constraint"/>
Expand All @@ -874,12 +870,10 @@
<define-assembly name="flag-constraints">
<use-name>constraint</use-name>
<model>
<assembly ref="constraint-let-expression" max-occurs="unbounded">
<group-as name="lets" in-json="ARRAY"/>
</assembly>
<choice-group min-occurs="1" max-occurs="unbounded">
<group-as name="rules" in-json="ARRAY"/>
<discriminator>object-type</discriminator>
<assembly ref="constraint-let-expression"/>
<assembly ref="flag-allowed-values"/>
<assembly ref="flag-expect"/>
<assembly ref="flag-index-has-key"/>
Expand Down

0 comments on commit b471a22

Please sign in to comment.