Skip to content

SR.001 validation errors are returned but never reported #19

Description

@driaz

SR.001 returns a list of errors from CheckStage, but the validation framework expects failures to be registered using _AddFailedCheck, as demonstrated by SR.002.

errors.extend(self.check_sr001_metadata_whitelist(stage))
return errors

self._AddFailedCheck(
requirement=cap.SimReadyRequirements.SR_002,
message=f"No thumbnail found at {thumbnail_path} for SimReady asset <{real_path}>",
at=stage,
)

As a result, assets with missing required SR.001 metadata pass validation without reporting any failures.

Verified with a stage authoring no customLayerData at all, SR.001 reports no failures.

Expected behavior: CheckStage should register each error returned by check_sr001_metadata_whitelist() using self._AddFailedCheck(...), with requirement=cap.SimReadyRequirements.SR_001, similar to the SR.002 implementation.

Acceptance criteria: An asset missing one or more required metadata fields fails SR.001 validation and reports the corresponding error message.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions