Rules

Providing an index of the machine-readable rules available for governing APIs, offering rules for linting API operations, as well as the surface area of each API, helping standardize how APIs are design, but also delivered across teams within an enterprise.

Also known as: Linting Rules, Style Rules, Governance Rules, Rulesets

Example

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

Standards

Media Types

OpenAPI Expression

Governance Rules

Risk & Compliance

Security: Weak or absent linting rules let security-sensitive defects (missing security schemes, undefined responses, leaked debug servers) ship to production. Pair lint rules with CI gates and treat rule changes as audited governance artifacts.

Tools

Suggested Metrics

Example Implementations

Related Properties

Tags


All Common Properties