experience-data-modeling.html
Well-formed schemas, types, and constraints for clean, validatable data.
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-data-modeling.spotlight.yaml
Or load it into the browser validator, post it to the HTTP API, or wire it into a CI gate. 25 of these rules are the engine's built-ins (they come with spotlight:*); the other 118 are inlined in the file below.
Ruleset definition
Loading…
Rules in this ruleset (143)
Skill Metadata Object
Agent Skill
API Entry Require Tag
APIs.json
Cost FinOps Require Monthly
FinOps
Cost FinOps Require Service
FinOps
Document FinOps Require Cost
FinOps
Document FinOps Require Name
FinOps
Document Require Context
JSON-LD
Document Require ID
JSON-LD
Document Require Type
JSON-LD
Document Require Description
JSON Schema
Document Require ID
JSON Schema
Document Require Property
JSON Schema
Document Require Required List
JSON Schema
Document Require Title
JSON Schema
Document Require Type
JSON Schema
Schema Property Require Description
JSON Schema
Schema Property 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 Property Require Type
JSON Structure
Schema JSON Structure Root Type Object
JSON Structure
Schema Property Require Type
JSON Structure
Schema Require
JSON Structure
Parameter Array Require Items
OpenAPI
Parameter Array Typed Items
OpenAPI
Parameter Avoid Integer ID
OpenAPI
Parameter Require In
OpenAPI
Parameter Require Required Flag
OpenAPI
Parameter Require Schema
OpenAPI
Parameter Schema Require Type
OpenAPI
Parameter Schema Use Ref
OpenAPI
Parameter String Require Pattern
OpenAPI
Path Delete No Response Body
OpenAPI
Path Get Response Support JSON
OpenAPI
Path Write Response Support JSON
OpenAPI
Response Body Must Be Object
OpenAPI
Response Success Use HAL JSON
OpenAPI
Response Use JSON API
OpenAPI
Response Use Standard Mime Types
OpenAPI
Schema Enum Not Empty
OpenAPI
Schema Integer Require Format
OpenAPI
Schema Number Require Format
OpenAPI
Schema Number Require Min Max
OpenAPI
Schema Property Require Type
OpenAPI
Schema Ref Property Standard
OpenAPI
Schema Require Description
OpenAPI
Schema Require Name
OpenAPI
Schema Require Type
OpenAPI
Schema String Require Max Length
OpenAPI
Document Require Name
Plans
Document Require Plan
Plans
Plan Currency Iso4217
Plans
Plan Price Non Negative
Plans
Plan Require Name
Plans
Document Require Limit
Rate Limits
Document Require Name
Rate Limits
Limit Max Positive
Rate Limits
Limit Require Name
Rate Limits