Spectral Rules

A SpectralRules property references the Spectral ruleset file that governs how the API's OpenAPI or AsyncAPI spec is validated. Publishing this alongside the spec makes governance rules discoverable and enables consumers to understand the quality standards the API is held to. It also supports meta-governance workflows — checking whether a provider has published their own API design rules.

Example

spectral-rules.yaml
- type: SpectralRules
  url: https://developers.example.com/.spectral.yaml
  mediaType: application/yaml

Tags

All Properties