Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix validation constraints to properly deference and key on uri-reference values #2107

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/metaschema/oscal_ssp_metaschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -610,19 +610,19 @@
<index id="oscal-system-implementation-component-uuid-index" name="index-system-implementation-component-uuid" target="component">
<key-field target="@uuid"/>
</index>
<index-has-key id="oscal-system-implementation-component-depends-on-link-index" name="index-system-implementation-component-uuid" target="component/link[@rel='depends-on']">
<key-field target="@href"/>
<index-has-key id="oscal-system-implementation-component-depends-on-link-index" name="index-system-implementation-component-uuid" target="component/link[@rel='depends-on' and starts-with(@href,'#')]">
<key-field target="@href" pattern="#(.*)"/>
</index-has-key>

<!-- References to components of @type="validation" -->
<index id="oscal-system-implementation-component-validation-uuid-index" name="index-system-implementation-component-uuid-validation" target="component[@type='validation']">
<key-field target="@uuid"/>
</index>
<index-has-key id="oscal-system-implementation-validated-by-index" name="index-system-implementation-component-uuid-validation" target="component/link[@rel='validated-by']">
<key-field target="@href"/>
<index-has-key id="oscal-system-implementation-validated-by-index" name="index-system-implementation-component-uuid-validation" target="component/link[@rel='validated-by' and starts-with(@href,'#')]">
<key-field target="@href" pattern="#(.*)"/>
</index-has-key>
<index-has-key id="oscal-system-implementation-proof-of-compliance-index" name="index-system-implementation-component-uuid-validation" target="component/link[@rel='proof-of-compliance']">
<key-field target="@href"/>
<index-has-key id="oscal-system-implementation-proof-of-compliance-index" name="index-system-implementation-component-uuid-validation" target="component/link[@rel='proof-of-compliance' and starts-with(@href,'#')]">
<key-field target="@href" pattern="#(.*)"/>
</index-has-key>

<!-- References to components of @type="service" -->
Expand Down