WireMock · API Governance Rules
WireMock API Rules
Spectral linting rules defining API design standards and conventions for WireMock.
7 Rules
warn 5
info 2
Rule Categories
wiremock
Rules
warn
wiremock-operation-summary-title-case
All operation summaries must use Title Case.
$.paths[*][*].summary
warn
wiremock-admin-path-prefix
All WireMock admin paths must start with /__admin/.
$.paths
info
wiremock-uuid-path-param
Path parameters representing IDs should use UUID format examples.
$.paths[*].parameters[?(@.in == 'path')]
warn
wiremock-response-200-defined
All GET operations must define a 200 response.
$.paths[*].get
warn
wiremock-operation-tags
All operations should have at least one tag.
$.paths[*][get,post,put,delete,patch]
warn
wiremock-json-request-body
POST/PUT operations that accept a body should specify application/json content type.
$.paths[*][post,put].requestBody.content
info
wiremock-no-empty-descriptions
Operations should have descriptions when complex behavior is involved.
$.paths[*][post,put,delete]