experience-consistency.html

Uniform shapes, conventions, and structure so every endpoint behaves predictably.

304 rules experience: consistency 248 inlined · 56 from the engine

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-consistency.spotlight.yaml

Or load it into the browser validator, post it to the HTTP API, or wire it into a CI gate. 56 of these rules are the engine's built-ins (they come with spotlight:*); the other 248 are inlined in the file below.

Ruleset definition

Download YAML

Loading…

Rules in this ruleset (304)

Skill Single Title Agent Skill
Arazzo Step StepId Arazzo engine
Arazzo Step Validation Arazzo engine
Arazzo WorkflowId Unique Arazzo engine
Asyncapi 3 Channel Servers AsyncAPI engine
Asyncapi 3 Tags Uniqueness AsyncAPI engine
Asyncapi Channel Parameters AsyncAPI engine
Asyncapi Channel Servers AsyncAPI engine
Asyncapi Latest Version AsyncAPI engine
Asyncapi Server Variables AsyncAPI engine
Asyncapi Tags Alphabetical AsyncAPI engine
Asyncapi Tags Uniqueness AsyncAPI engine
Document Require ID JSON Schema
Document Require Type JSON Schema
Schema Require JSON Schema
Document Require ID JSON Structure
Document Require Name JSON Structure
Document Require Property JSON Structure
Document Require Type JSON Structure
Schema JSON Structure URI JSON Structure
Schema Require JSON Structure
Duplicated Entry In Enum OpenAPI engine
No $ref Siblings OpenAPI engine
OAS3 Server Variables OpenAPI engine
OAS3 Unused Component OpenAPI engine
OAS3.1 Servers In Webhook OpenAPI engine
Openapi Tags Alphabetical OpenAPI engine
Openapi Tags Uniqueness OpenAPI engine
Operation OperationId OpenAPI engine
Operation Parameters OpenAPI engine
Operation Singular Tag OpenAPI engine
Operation Tag Defined OpenAPI engine
Path No Verbs OpenAPI
Path Not Include Query OpenAPI engine
Path Params OpenAPI engine
Typed Enum OpenAPI engine
Limit Scope Known Rate Limits
Limit Window Format Rate Limits

← All experience rulesets