Skip to content

Add constraint processing support for TargetedReportConstraint #592

@david-waltermire

Description

@david-waltermire

Summary

The TargetedReportConstraint binding class was added in PR #589 as part of the Metapath-based targeting for binding configurations, but the constraint processing system has not been updated to handle this new constraint type.

Background

The TargetedReportConstraint class was generated from the Metaschema module to support inline report constraints with a target attribute. However, the constraint loader and validation infrastructure need to be updated to:

  1. Recognize and parse TargetedReportConstraint instances
  2. Evaluate the target Metapath expression to identify target nodes
  3. Apply the report constraint logic to each matched target

Files Added

  • databind/src/main/java/gov/nist/secauto/metaschema/databind/model/metaschema/binding/TargetedReportConstraint.java

Implementation Tasks

  • Update constraint loader to handle TargetedReportConstraint
  • Add target evaluation logic (similar to other targeted constraints)
  • Wire into validation pipeline
  • Add unit tests for targeted report constraints
  • Add integration test with sample Metaschema using targeted report

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions