experience-performance.html
Caching, payload, and efficiency signals that keep the API fast.
Run this ruleset
Lint any matching artifact against this ruleset with the Spotlight CLI:
npm i -g @spotlight-rules/spotlight-cli spotlight lint api.yaml \ --ruleset https://apicommons.org/assets/rulesets/experience-performance.spotlight.yaml
Or load it into the browser validator, post it to the HTTP API, or wire it into a CI gate. 0 of these rules are the engine's built-ins (they come with spotlight:*); the other 29 are inlined in the file below.
Ruleset definition
Loading…
Rules in this ruleset (29)
Schema Include Rate Limit Reference
APIs.json
Document Cache Control Parameter
OpenAPI
Document Cache Response Header
OpenAPI
Operation Define 429 Response
OpenAPI
Request Support Accept Encoding
OpenAPI
Response 202 Retry After
OpenAPI
Response Define 429
OpenAPI
Response Get Cache Control
OpenAPI
Response Get ETag
OpenAPI
Response Get Last Modified
OpenAPI
Response Get Link Header
OpenAPI
Response Get Vary
OpenAPI
Response Ratelimit Header
OpenAPI
Response Ratelimit Policy
OpenAPI
Response Write ETag
OpenAPI