Skip to content

Example showing validation against custom schema #106

Description

@nabadger

Describe Request:

The app supports validation against a custom schema file, however I can't seem to get this to work.

For example, if I wanted to validate System defined in my local catalog-info.yaml against https://raw.githubusercontent.com/backstage/backstage/refs/heads/master/packages/catalog-model/src/schema/kinds/System.v1alpha1.schema.json how would I do that?

I'm not even sure I should be using that schema to validate... :)

If I download that schema and run it, I get

Validating Entity Schema policies for file catalog-info.yaml
Validated entity kind 'system' successfully.
Using validation schema from system-schema.json...
Failed to validate catalog-info.yaml: Error: can't resolve reference Entity from id SystemV1alpha1

My end goal would be to define a custom schema with some extra validation that I'd like.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions