Squarespace · API Governance Rules
Squarespace API Rules
Spectral linting rules defining API design standards and conventions for Squarespace.
12 Rules
error 4
warn 7
info 1
Rule Categories
squarespace
Rules
warn
squarespace-list-endpoint-cursor
List (GET collection) endpoints must support cursor-based pagination
$.paths[?([email protected](/\{[^}]+\}$/))].get
error
squarespace-operation-id-required
All operations must have an operationId
$.paths[*][*]
warn
squarespace-operation-id-camel-case
Operation IDs must use camelCase
$.paths[*][*].operationId
error
squarespace-operation-summary-required
All operations must have a summary
$.paths[*][*]
warn
squarespace-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
warn
squarespace-operation-description-required
All operations must have a description
$.paths[*][*]
warn
squarespace-operation-tags-required
All operations must have tags
$.paths[*][*]
warn
squarespace-tags-title-case
All tags must use Title Case
$.tags[*].name
info
squarespace-paths-commerce-prefix
Squarespace Commerce API paths should start with /commerce
$.paths
error
squarespace-bearer-auth
Squarespace APIs use Bearer token authentication
$.components.securitySchemes
warn
squarespace-401-response
Secured endpoints should document 401 Unauthorized responses
$.paths[*][*].responses
error
squarespace-json-response-content-type
Success responses must use application/json content type
$.paths[*][*].responses['200'].content