ThemeParks.wiki · API Governance Rules
ThemeParks.wiki API Rules
Spectral linting rules defining API design standards and conventions for ThemeParks.wiki.
22 Rules
error 8
warn 11
info 3
Rule Categories
get
info
no
openapi
operation
parameter
paths
response
schema
servers
Rules
error
info-title-required
Info object must have a title
$.info
warn
info-description-required
Info object must have a description
$.info
error
info-version-required
API version must be defined
$.info
warn
openapi-version-3
OpenAPI version should be 3.x
$
error
servers-defined
Servers array must be defined
$
error
servers-https
Server URLs must use HTTPS
$.servers[*].url
warn
paths-kebab-case
Path segments must use kebab-case
$.paths[*]~
warn
paths-no-trailing-slash
Paths must not have trailing slashes
$.paths[*]~
error
operation-summary-required
Operations must have a summary
$.paths[*][get,post,put,delete,patch]
warn
operation-description-required
Operations must have a description
$.paths[*][get,post,put,delete,patch]
error
operation-operationId-required
Operations must have an operationId
$.paths[*][get,post,put,delete,patch]
warn
operation-tags-required
Operations must have at least one tag
$.paths[*][get,post,put,delete,patch]
info
operation-summary-provider-prefix
Operation summaries should start with 'ThemeParks.wiki'
$.paths[*][get,post,put,delete,patch].summary
info
parameter-entity-id-uuid
Entity ID path parameters should use UUID format
$.paths[*][get,post,put,delete,patch].parameters[?(@.name=='entityID')]
warn
parameter-description-required
Parameters must have descriptions
$.paths[*][get,post,put,delete,patch].parameters[*]
error
response-success-required
Operations must have at least one success response
$.paths[*][get,post,put,delete,patch].responses
warn
response-404-for-entity-paths
Entity endpoints should document 404 not found response
$.paths[/entity/*][get].responses
warn
response-description-required
Response objects must have a description
$.paths[*][get,post,put,delete,patch].responses[*]
warn
schema-type-defined
Schema objects should have a type
$.components.schemas[*]
info
no-auth-required
ThemeParks.wiki API requires no authentication
$
error
get-no-request-body
GET operations must not have a request body
$.paths[*].get
warn
no-empty-descriptions
Descriptions must not be empty
$..description