Rightsline · API Governance Rules
Rightsline API Rules
Spectral linting rules defining API design standards and conventions for Rightsline.
11 Rules
error 4
warn 6
info 1
Rule Categories
rightsline
Rules
warn
rightsline-operation-summary-title-case
All operation summaries must use Title Case
$.paths[*][get,post,put,patch,delete].summary
warn
rightsline-operation-id-camel-case
Operation IDs should be camelCase
$.paths[*][get,post,put,patch,delete].operationId
warn
rightsline-tags-title-case
Tags must use Title Case
$.paths[*][get,post,put,patch,delete].tags[*]
error
rightsline-must-have-authentication
All operations must require authentication
$.paths[*][get,post,put,patch,delete]
error
rightsline-get-must-have-200
GET operations must return a 200 response
$.paths[*].get
warn
rightsline-post-must-have-201
POST create operations should return 201 Created
$.paths[*].post
warn
rightsline-delete-must-have-204
DELETE operations should return 204 No Content
$.paths[*].delete
info
rightsline-bulk-operations-max-100
Bulk operation descriptions must note the 100 record limit
$.paths[*].post.description
error
rightsline-path-params-required
Path parameters must be required
$.paths[*][get,post,put,patch,delete].parameters[?(@.in == 'path')]
warn
rightsline-pagination-limit-parameter
List endpoints should support limit parameter
$.paths[*].get.parameters[?(@.name == 'limit')]
error
rightsline-servers-must-be-https
All servers must use HTTPS
$.servers[*].url