Samsung · API Governance Rules
Samsung API Rules
Spectral linting rules defining API design standards and conventions for Samsung.
13 Rules
error 3
warn 9
info 1
Rule Categories
samsung
Rules
warn
samsung-operation-summary-title-case
Operation summaries must use Title Case.
$.paths[*][*].summary
warn
samsung-operation-id-camel-case
Operation IDs must use camelCase naming convention.
$.paths[*][*].operationId
warn
samsung-path-kebab-case
Path segments must use kebab-case (lowercase with hyphens).
$.paths
warn
samsung-response-200-schema
All 200 responses must include a schema definition.
$.paths[*][get,post,put,patch].responses['200']
error
samsung-bearer-auth
SmartThings API uses OAuth 2.0 Bearer token authentication.
$.components.securitySchemes
warn
samsung-uuid-format
Device IDs, location IDs, and room IDs must use UUID format.
$.components.schemas[*].properties[?(@.description =~ /[Uu]nique.*identifier/)]
info
samsung-pagination-links
Collection endpoints should return pagination links.
$.paths[*][get].responses['200'].content['application/json'].schema.properties
error
samsung-no-trailing-slash
API paths must not end with a trailing slash.
$.paths
warn
samsung-tags-required
All operations must have at least one tag for categorization.
$.paths[*][get,post,put,patch,delete]
warn
samsung-description-required
All operations must have a description.
$.paths[*][get,post,put,patch,delete]
error
samsung-delete-no-request-body
DELETE operations must not include a request body.
$.paths[*][delete]
warn
samsung-post-request-body-required
POST operations that create resources must have a request body.
$.paths[*][post]
warn
samsung-401-defined
All secured operations must declare a 401 Unauthorized response.
$.paths[*][get,post,put,patch,delete].responses