TheMealDB · API Governance Rules
TheMealDB API Rules
Spectral linting rules defining API design standards and conventions for TheMealDB.
18 Rules
error 8
warn 8
info 2
Rule Categories
get
info
no
openapi
operation
parameter
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
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 'TheMealDB'
$.paths[*][get,post,put,delete,patch].summary
warn
parameter-description-required
Parameters must have descriptions
$.paths[*][get,post,put,delete,patch].parameters[*]
error
response-success-required
Operations must have a success response
$.paths[*][get,post,put,delete,patch].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[*]
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
info
operation-examples-encouraged
Operations should have examples
$.paths[*][get,post,put,delete,patch].responses[*].content[*]