Skip to content

Commit

Permalink
Merge pull request #160 from rocketstack-matt/spectral-docs
Browse files Browse the repository at this point in the history
Minor updates to the Spectral README
  • Loading branch information
willosborne committed Apr 22, 2024
2 parents aca4934 + fc1b195 commit c7170ed
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions spectral/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Spectral validation rules for AasC implementations
These rules perform simple structural checks on Architecture-as-Code implementation files to verify that they make sense semantically.
# Spectral validation rules for CALM implementations
These rules perform simple structural checks on CALM implementation files to verify that they make sense semantically.
For example, if a relationship references a node, then that node should exist in the file.

## Installing spectral
Expand All @@ -25,5 +25,8 @@ spectral lint --ruleset aac.yaml implementation.json
For example, to run the rulesets against the sample spec, which should produce several errors:

```bash
spectral lint --ruleset aac.yaml examples/bad-rest-api.json
```
spectral lint --ruleset ./instantiation/validation-rules.yaml ./examples/bad-rest-api.json
```

## Learn more
See the [Spectral documentation](https://docs.stoplight.io/docs/spectral/674b27b261c3c-overview) for more information on how to configure the Spectral rules.

0 comments on commit c7170ed

Please sign in to comment.