Sideko · API Governance Rules
Sideko API Rules
Spectral linting rules defining API design standards and conventions for Sideko.
10 Rules
error 3
warn 6
Rule Categories
sideko
Rules
warn
sideko-id-format-uuid
Resource identifiers must use UUID format
$.components.schemas[*].properties[?(@.description =~ /identifier|id/i)]
warn
sideko-list-response-shape
List response schemas must include items array and total count
$.components.schemas[?(@.properties.items && @.type == 'object')]
error
sideko-sdk-language-enum
SDK language must be from the supported language list
$.components.schemas[?(@.properties.language)].properties.language
warn
sideko-status-enum
Status fields should use enumeration
$.components.schemas[*].properties.status
warn
sideko-create-returns-201
Resource creation endpoints should return HTTP 201
$.paths[*].post.responses
warn
sideko-delete-returns-204
Delete operations should return HTTP 204 No Content
$.paths[*].delete.responses
error
sideko-api-key-header-name
API key header must use x-sideko-key
$.components.securitySchemes[?(@.type == 'apiKey')].name
warn
sideko-operation-id-camel-case
Operation IDs must use camelCase naming
$.paths[*][*].operationId
error
sideko-operation-summary-required
All operations must have a summary
$.paths[*][*]
hint
sideko-path-params-use-refs
Path parameters should use $ref to components/parameters
$.paths[*][*].parameters[?(@.in == 'path')]