Snapchat · API Governance Rules
Snapchat API Rules
Spectral linting rules defining API design standards and conventions for Snapchat.
10 Rules
error 1
warn 5
info 4
Rule Categories
snapchat
Rules
warn
snapchat-operation-id-camel-case
Operation IDs must use camelCase naming
$.paths[*][*].operationId
warn
snapchat-path-kebab-case
Path segments must use kebab-case or path parameters
$.paths[*]~
info
snapchat-response-envelope
Snapchat Ads API responses use an envelope pattern with request_status and request_id fields in 200 responses.
$.paths[*][get,post,put].responses['200'].content['application/json'].schema.properties
error
snapchat-security-defined
All operations must define security requirements
$.paths[*][get,post,put,delete,patch]
warn
snapchat-operation-tag
All operations must have at least one tag
$.paths[*][get,post,put,delete,patch]
warn
snapchat-operation-summary
All operations must have a summary in Title Case
$.paths[*][get,post,put,delete,patch]
info
snapchat-operation-description
All operations should have a description
$.paths[*][get,post,put,delete,patch]
info
snapchat-json-content-type
Request and response bodies should use application/json
$.paths[*][post,put,patch].requestBody.content
info
snapchat-path-param-naming
Path parameters should use snake_case
$.paths[*][*].parameters[*][?(@.in == 'path')].name
warn
snapchat-server-versioned
Servers should include a versioned base path (v1, v2, v3)
$.servers[*].url