Skip to content

GitLab domainId example uses type mr, which isn't a governed resource type #345

Open

Description

@cvas22

links.md says the type segment of a domainId MUST be one of the Common Resource Types, and pr covers pull and merge requests. But the GitLab example uses mr (cdevents:v0:gitlab::my-company:platform/backend:mr:99) in links.md, in the examples of schemas/links/domainid.json and as a valid case in conformance/formats/domainid.json. mr isn't in schemas/registry/resource-types.json either, so an SDK that checks the type against the registry would reject a vector the spec calls valid.

I think the example should just use pr. Nothing checks the domainId vectors today, so I'd also like to add a check to tools/validate.js that runs them against the domainid schema and the provider and resource-type registries, so this kind of drift gets caught in CI.

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