Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spectral validation PoC #28

Merged
merged 3 commits into from
Mar 1, 2024

Conversation

willosborne
Copy link
Member

Adds spectral validation rules to inspect implementation documents.

Rules:

  • check that documents have nodes and relationships as top level elements (error, this is a very simple example rule)
  • check that every relationship references a node that exists in the document (error)
  • check that every node referenced by a composition relationship exists (error)
  • check that every node is referenced by at least one relationship (warning)

@willosborne
Copy link
Member Author

Addresses issue #20

@willosborne willosborne changed the title #20 Spectral validation Spectral validation Feb 22, 2024
@willosborne willosborne changed the title Spectral validation Spectral validation PoC Feb 22, 2024
@rocketstack-matt
Copy link
Member

I think this going to be really useful, we should create an issue to add a GitHub Action to run the rules against every pattern we add to the repo.

We should also raise a task to review these rules every time the schema changes to ensure they're still valid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants