Skip to content

Commit

Permalink
Validating the current SP 800-53 catalog in oscal-content results in …
Browse files Browse the repository at this point in the history
…a missing key violation. This fixes that. (#1808)
  • Loading branch information
david-waltermire authored and aj-stein-nist committed Jul 10, 2023
1 parent 7e43b9a commit 7f5bf80
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/metaschema/oscal_catalog_metaschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
<index name="catalog-props" target="//prop" >
<key-field target="@uuid"/>
</index>
<index name="catalog-groups-controls-parts" target="//(control|group|part)">
<key-field target="@id"/>
</index>
<index name="catalog-controls" target="//control" >
<key-field target="@id"/>
</index>
Expand Down Expand Up @@ -261,7 +264,7 @@
referenced control.</enum>
</allowed-values>
<!-- TODO: add expect constraint to check for controls that reference themselves -->
<index-has-key name="catalog-controls"
<index-has-key name="catalog-groups-controls-parts"
target="link[@rel=('related','required','incorporated-into','moved-to') and starts-with(@href,'#')]">
<key-field target="@href" pattern="#(.*)"/>
</index-has-key>
Expand Down

0 comments on commit 7f5bf80

Please sign in to comment.