Weave Net · API Governance Rules
Weave Net API Rules
Spectral linting rules defining API design standards and conventions for Weave Net.
22 Rules
error 8
warn 8
info 6
Rule Categories
delete
get
info
openapi
operation
parameter
response
schema
servers
Rules
error
info-title-required
Info must have a title
$.info
warn
info-description-required
Info must have a description
$.info
error
info-version-required
Info must have a version
$.info
info
info-contact-recommended
Info should have contact information
$.info
warn
info-license-required
Info should have license information
$.info
error
openapi-version-3
Must use OpenAPI 3.x
$
error
servers-required
Servers must be defined
$
info
servers-description-required
Server entries should have descriptions
$.servers[*]
error
operation-operationId-required
Every operation must have an operationId
$.paths[*][get,post,put,delete,patch]
warn
operation-operationId-camel-case
OperationIds must use camelCase
$.paths[*][get,post,put,delete,patch].operationId
warn
operation-summary-required
Every operation must have a summary
$.paths[*][get,post,put,delete,patch]
info
operation-summary-weave-net-prefix
Operation summaries must start with 'Weave Net'
$.paths[*][get,post,put,delete,patch].summary
warn
operation-description-required
Operations should have descriptions
$.paths[*][get,post,put,delete,patch]
warn
operation-tags-required
Operations must have at least one tag
$.paths[*][get,post,put,delete,patch]
warn
parameter-description-required
Parameters should have descriptions
$.paths[*][get,post,put,delete,patch].parameters[*]
error
parameter-schema-required
Parameters must have a schema
$.paths[*][get,post,put,delete,patch].parameters[*]
error
response-success-required
Every operation must have a success response
$.paths[*][get,post,put,delete,patch].responses
warn
response-description-required
Every response must have a description
$.paths[*][get,post,put,delete,patch].responses[*]
error
get-no-request-body
GET operations must not have a request body
$.paths[*].get
info
delete-returns-correct-status
DELETE operations should return 204 or 200
$.paths[*].delete.responses
info
schema-properties-described
Schema properties should have descriptions
$.components.schemas[*].properties[*]
info
operation-microcks-extension
Operations should have x-microcks-operation for mock support
$.paths[*][get,post,put,delete,patch]