Skip to content

implementation-common: inventory-item prop-name constraint predicate can never match (no type flag) #2255

Description

@JonathanBezdek

In src/metaschema/oscal_implementation-common_metaschema.xml at v1.2.2 (commit 21403b4), the constraint oscal-inventory-item-hardware-service-software-prop-name-values at L567 scopes inventory-item prop names under the predicate (.)[@type=('software', 'hardware', 'service')] — but inventory-item declares no type flag, so the predicate can never be true and the constraint (enum vendor-name) can never apply. (Related: the neighboring asset-id flag is itself commented out at L456-461, which suggests this region of the module has drifted.)

Found during a lexical inventory of all constraint occurrences in the 1.2.2 Metaschema sources.

Suggested resolution: either add the intended type flag to inventory-item, retarget the predicate (e.g. at a prop-based discriminator), or remove the unreachable constraint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions