Common Sense Media · API Governance Rules
Common Sense Media API Rules
Spectral linting rules defining API design standards and conventions for Common Sense Media.
9 Rules
error 4
warn 3
info 2
Rule Categories
csm
Rules
error
csm-info-contact
API info must include a contact block.
$.info
error
csm-server-https
Server URLs must use HTTPS.
$.servers[*].url
warn
csm-server-host
Server URL should point to api.commonsense.org.
$.servers[*].url
info
csm-version-prefix
Server URL should include the /api/v3 path prefix.
$.servers[*].url
error
csm-operation-id
Every operation must declare a unique operationId.
$.paths[*][get,post,put,patch,delete]
warn
csm-operation-tags
Operations must declare at least one tag.
$.paths[*][get,post,put,patch,delete]
warn
csm-only-get
Common Sense Media v3 only supports GET methods.
$.paths[*]
error
csm-api-key-security
API key security scheme must be declared.
$.components.securitySchemes
info
csm-uuid-paths
Item-scoped paths should be keyed by a UUID parameter.
$.paths[?(@property.indexOf('reviewId') > -1)]