contentstack · API Governance Rules
contentstack API Rules
Spectral linting rules defining API design standards and conventions for contentstack.
8 Rules
error 5
warn 3
Rule Categories
contentstack
Rules
error
contentstack-info-title-prefix
All Contentstack OpenAPI info.title fields must start with "Contentstack"
$.info.title
warn
contentstack-info-contact
Info contact information should be present
$.info
error
contentstack-server-defined
At least one server URL must be defined
$.servers
error
contentstack-operation-id-camelcase
Every operation must define an operationId in camelCase
$.paths.*[get,put,post,delete,patch].operationId
error
contentstack-operation-summary-required
Every operation must include a non-empty summary
$.paths.*[get,put,post,delete,patch]
warn
contentstack-tag-defined
Operations must reference at least one tag
$.paths.*[get,put,post,delete,patch].tags
warn
contentstack-no-trailing-slash
Paths should not end with a trailing slash
$.paths
error
contentstack-success-response-defined
Every operation must define a 2xx response
$.paths.*[get,put,post,delete,patch].responses