Skip to content

Commit

Permalink
Add missing flag report constraint for metaschema-framework#32
Browse files Browse the repository at this point in the history
Address @david-waltermire's feedback about the missing constraint type
for flags.
  • Loading branch information
aj-stein-gsa committed Dec 19, 2024
1 parent 2de1718 commit 63ed6dc
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion schema/metaschema/metaschema-module-metaschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@
<assembly ref="targeted-is-unique-constraint"/>
<assembly ref="targeted-index-constraint"/>
<assembly ref="targeted-has-cardinality-constraint"/>
<assembly ref="targeted-report-constraint"></assembly>
<assembly ref="targeted-report-constraint"/>
</choice-group>
</model>
</define-assembly>
Expand Down Expand Up @@ -903,6 +903,7 @@
<assembly ref="flag-expect"/>
<assembly ref="flag-index-has-key"/>
<assembly ref="flag-matches"/>
<assembly ref="flag-report"/>
</choice-group>
</model>
</define-assembly>
Expand Down Expand Up @@ -961,6 +962,26 @@
</model>
</define-assembly>

<define-assembly name="flag-report">
<formal-name>Report Condition Constraint</formal-name>
<use-name>report</use-name>
<flag ref="constraint-identifier"/>
<flag ref="constraint-severity-level"/>
<flag ref="constraint-target" required="yes">
<formal-name>Report Test Condition</formal-name>
<use-name>test</use-name>
</flag>
<model>
<field ref="formal-name"/>
<field ref="description"/>
<assembly ref="property" max-occurs="unbounded">
<group-as name="props" in-json="ARRAY"/>
</assembly>
<field ref="constraint-message"/>
<field ref="remarks"/>
</model>
</define-assembly>

<define-assembly name="flag-index-has-key">
<formal-name>Index Has Key Constraint</formal-name>
<use-name>index-has-key</use-name>
Expand Down Expand Up @@ -1338,6 +1359,7 @@
<assembly ref="flag-expect"/>
<assembly ref="flag-index-has-key"/>
<assembly ref="flag-matches"/>
<assembly ref="flag-report"/>
</choice-group>
</model>
</define-assembly>
Expand Down

0 comments on commit 63ed6dc

Please sign in to comment.