TheSpaceDevs LL2 API · API Governance Rules
TheSpaceDevs LL2 API API Rules
Spectral linting rules defining API design standards and conventions for TheSpaceDevs LL2 API.
9 Rules
error 2
warn 3
info 4
Rule Categories
thespacedevs
Rules
warn
thespacedevs-operation-summary-title-case
All operation summaries must use Title Case.
$.paths[*][*].summary
info
thespacedevs-operation-ids-snake-case
LL2 API uses snake_case operationIds in format resource_action.
$.paths[*][*].operationId
warn
thespacedevs-tags-required
All operations must have at least one tag.
$.paths[*][get,post,put,patch,delete]
info
thespacedevs-description-required
All operations should have a description.
$.paths[*][get,post,put,patch,delete]
error
thespacedevs-200-response-defined
All GET operations must define a 200 response.
$.paths[*][get].responses
info
thespacedevs-list-has-limit-param
List operations should support a limit query parameter.
$.paths[*~][?(@.get)]
warn
thespacedevs-path-version-prefix
All paths should include the API version prefix /2.3.0/.
$.paths[*]~
info
thespacedevs-path-trailing-slash
LL2 API paths use trailing slashes.
$.paths[*]~
error
thespacedevs-servers-defined
At least one server URL must be defined.
$