SimpleLegal · API Governance Rules
SimpleLegal API Rules
Spectral linting rules defining API design standards and conventions for SimpleLegal.
8 Rules
warn 5
info 3
Rule Categories
simplelegal
Rules
warn
simplelegal-summary-title-case
Operation summaries must use Title Case.
$.paths[*][*].summary
warn
simplelegal-operationid-kebab-case
OperationIds must use kebab-case naming.
$.paths[*][*].operationId
info
simplelegal-pagination-params
Collection GET endpoints should support page and page_size parameters.
$.paths[?([email protected](/{.*}/))].get.parameters[*].name
warn
simplelegal-basic-auth
API must use HTTP Basic authentication.
$.components.securitySchemes[*].scheme
info
simplelegal-patch-update
Update operations should prefer PATCH over PUT.
$.paths[*].put.operationId
warn
simplelegal-json-responses
All responses should return application/json.
$.paths[*][*].responses[?(@property >= '200')].content
info
simplelegal-error-responses
Operations should document authentication and not-found error responses.
$.paths[*][*].responses
warn
simplelegal-descriptions-required
All paths and operations must have descriptions.
$.paths[*][*]$.info