SaaSHub · API Governance Rules
SaaSHub API Rules
Spectral linting rules defining API design standards and conventions for SaaSHub.
7 Rules
error 1
warn 6
Rule Categories
saashub
Rules
warn
saashub-summary-title-case
All operation summaries must use Title Case
$.paths[*][*].summary
warn
saashub-tags-title-case
All tags must use Title Case
$.paths[*][*].tags[*]
error
saashub-api-key-required
API key query parameter must be present on all operations
$.paths[*][get]
warn
saashub-operation-ids-camel-case
Operation IDs must use camelCase
$.paths[*][*].operationId
warn
saashub-path-params-have-examples
Path parameters should include examples
$.paths[*][*].parameters[?(@.in == 'path')]
warn
saashub-responses-include-json
Successful responses must return application/json
$.paths[*][*].responses[?(@property.match(/^2/))]
warn
saashub-jsonapi-response-structure
Responses should follow JSON:API structure with data field
$.components.schemas[*]