Storyblok · API Governance Rules
Storyblok API Rules
Spectral linting rules defining API design standards and conventions for Storyblok.
10 Rules
error 2
warn 6
info 2
Rule Categories
storyblok
Rules
warn
storyblok-space-id-path-param
Management API endpoints must include space_id as a path parameter
$.paths[?(@property.match(/\/spaces\//))].*.parameters[?(@.in == 'path')]
error
storyblok-https-only
All server URLs must use HTTPS
$.servers[*]
error
storyblok-operation-ids
All operations must have an operationId
$.paths.*.*
warn
storyblok-operation-summary
All operations must have a summary
$.paths.*.*
warn
storyblok-tags-required
All operations must have at least one tag
$.paths.*.*
warn
storyblok-401-response
All operations should define a 401 Unauthorized response
$.paths.*.*.responses
warn
storyblok-json-content-type
POST and PUT operations must accept application/json content type
$.paths.*[post,put].requestBody.content
info
storyblok-pagination-params
List operations should support pagination parameters
$.paths[?(@property.match(/stories$|components$|assets$|datasources$|collaborators$/))].get.parameters[*]
warn
storyblok-description-required
All parameters must have descriptions
$.paths.*.*.parameters[*]
info
storyblok-version-in-server
Server URLs should include API version
$.servers[*]