WegoWise · API Governance Rules
WegoWise API Rules
Spectral linting rules defining API design standards and conventions for WegoWise.
12 Rules
error 1
warn 10
info 1
Rule Categories
wegowise
Rules
warn
wegowise-path-id-integer
Path parameters named 'id' should be typed as integer
$.paths[*][*].parameters[?(@.name == 'id')]
error
wegowise-operation-id-required
All operations must have an operationId
$.paths[*][get,post,put,patch,delete]
warn
wegowise-operation-id-camel-case
operationId must use camelCase
$.paths[*][*].operationId
warn
wegowise-summary-title-case
Operation summaries must start with a capital letter (Title Case)
$.paths[*][*].summary
warn
wegowise-description-required
All operations must have a description
$.paths[*][get,post,put,patch,delete]
warn
wegowise-operation-tags
All operations must have at least one tag
$.paths[*][get,post,put,patch,delete]
warn
wegowise-date-parameter-format
Date query parameters should specify format date
$.paths[*][*].parameters[?(@.name == 'start_date' || @.name == 'end_date')]
warn
wegowise-data-type-enum
data_type parameters should define valid enum values
$.paths[*][*].parameters[?(@.name == 'data_type')]
warn
wegowise-401-response
Authenticated operations must define a 401 response
$.paths[*][get,post,put,patch,delete].responses
warn
wegowise-delete-204
DELETE operations should return 204 No Content
$.paths[*].delete.responses
info
wegowise-post-201
POST create operations should return 201 Created
$.paths[*].post.responses
warn
wegowise-schema-description
Component schemas must have descriptions
$.components.schemas[*]