Skip to content

Commit

Permalink
Adding unique constraint to enforce unique set-parameter entries.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-waltermire committed Aug 29, 2021
1 parent 6381eee commit 80ae9d4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/metaschema/oscal_profile_metaschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,14 @@
</assembly>
</choice>
</model>
<constraint>
<is-unique id="unique-profile-modify-set-parameter" target="set-parameter">
<key-field target="@param-id"/>
<remarks>
<p>Since multiple <code>set-parameter</code> entries can be provided, each parameter must be set only once.</p>
</remarks>
</is-unique>
</constraint>
</define-assembly>
<assembly ref="alter" max-occurs="unbounded">
<group-as name="alters" in-json="ARRAY"/>
Expand Down

0 comments on commit 80ae9d4

Please sign in to comment.