SpaceX API · API Governance Rules
SpaceX API API Rules
Spectral linting rules defining API design standards and conventions for SpaceX API.
8 Rules
error 1
warn 4
info 3
Rule Categories
spacex
Rules
warn
spacex-operation-summary-title-case
All operation summaries must use Title Case
$.paths[*][*].summary
warn
spacex-operation-id-camel-case
All operationIds must use camelCase
$.paths[*][*].operationId
warn
spacex-tags-title-case
All tags must use Title Case
$.tags[*].name
info
spacex-resource-has-list-and-get
Resource collections should expose both list and get-by-id operations
$.paths[*]
warn
spacex-response-must-have-description
All responses must have a description
$.paths[*][*].responses[*]
info
spacex-schema-properties-have-descriptions
Schema properties should have descriptions
$.components.schemas[*].properties[*]
error
spacex-servers-must-be-https
All server URLs must use HTTPS
$.servers[*].url
info
spacex-path-parameters-must-be-id
SpaceX API path parameters for entity lookup should be named id
$.paths[*].get.parameters[?(@.in=='path')]