Skip to content

PASS vs OK&PASS for AnyOf&AllOf #222

@ArnoldTchegou

Description

@ArnoldTchegou

Hi all,

I have some concerns regarding how results are handled in the case of AnyOf and AllOf evaluations:

  • AnyOf Evaluation: When the service level requirement passes, instances whose property values contribute to making the test pass are marked as PASS, while those that do not contribute are marked as OK.

  • AllOf Evaluation: When the service level requirement passes, all instances (which do not individually contribute to passing the test) are marked as OK.

According to the spec, "The AnyOf and AllOf comparison types can be met using any resource instance within the scope of the schema-level requirement." Based on this, I believe that in both cases (i.e., for both AnyOf and AllOf evaluations), if the service level passes, all instances should have their result marked as PASS, since the requirement is met at the service level regardless of individual contributions.

Would you consider the new idea? if its the case, i am ready to make a pull request.

Reference for AnyOf

Image

Reference for AllOf

Image

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