Skip to content

Commit

Permalink
Add error behavior for index per usnistgov#549 (usnistgov#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-stein-nist authored Feb 23, 2024
1 parent a4331e1 commit 6c519a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions website/content/specification/syntax/constraints.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ An `index` constraint requires that each member entry be unique based upon this

If the evaluation of the Metapath `@target` of the `<key-field/>` does not result in a value, its value for that key in the index is null.

If two entries have the same key computed from the `<key-field>` `@target`s when generating the index, the processor MUST return a processing error.

## `index-has-key` constraints

The `index-has-key` constraint is a type of Metaschema constraint that cross-references values an existing `index` constraint` with a separate `@target` and `<key-field/>`.
Expand Down

0 comments on commit 6c519a6

Please sign in to comment.