Web Methods · API Governance Rules
Web Methods API Rules
Spectral linting rules defining API design standards and conventions for Web Methods.
44 Rules
error 23
warn 17
info 4
Rules by declared severity: the level each rule assigns to a violation. These are not lint results.
Generated by API Evangelist
Written by API Evangelist tooling for Web Methods's APIs. It is a starting point, not a ruleset Web Methods publishes or enforces.
Rule Categories
info
mediatype
operation
operationid
parameter
path
property
requestbody
response
schema
securityscheme
server
Rules
warn
operationid-casing-camel
operationIds are camel case (measured: 96% of this contract)
$.paths[*][get,post,put,patch,delete].operationId
info
operation-has-description
Every operation has a description (measured: 88% of this contract)
$.paths[*][get,post,put,patch,delete]
error
operation-has-success-response
Every operation declares a 2xx response (measured: 100% of this contract)
$.paths[*][get,post,put,patch,delete].responses
warn
operation-declares-4xx
Every operation declares at least one 4xx response (measured: 94% of this contract)
$.paths[*][get,post,put,patch,delete].responses
warn
operation-declares-401-or-403
Every operation declares 401 or 403 (measured: 93% of this contract)
$.paths[*][get,post,put,patch,delete].responses
warn
path-segment-casing-camel
Path segments are camel case (measured: 96% of this contract)
$.paths[*]~
error
path-no-trailing-slash
Paths carry no trailing slash (measured: 100% of this contract)
$.paths[*]~
error
path-params-in-braces
Path parameters use {braces}, not :colon (measured: 100% of this contract)
$.paths[*]~
warn
response-media-type
Responses are served as application/json (measured: 96% of this contract)
$.paths[*][get,post,put,patch,delete].responses[*].content
info
property-name-casing-camel
Schema property names are camel case (measured: 88% of this contract)
$.components.schemas[*].properties[*]~
error
info-has-description
The contract's info block carries a description (measured: 100% of this contract)
$.info
error
info-title-present
Info declares title (measured: 100% of this contract)
$.info
warn
info-title-min-length
Info.title runs at least 16 characters (measured: 97% of this contract)
$.info.title
error
info-description-present
Info declares description (measured: 100% of this contract)
$.info
warn
info-description-min-length
Info.description runs at least 238 characters (measured: 95% of this contract)
$.info.description
error
info-version-present
Info declares version (measured: 100% of this contract)
$.info
error
info-version-semver
info.version is numeric (measured: 100% of this contract)
$.info.version
error
server-url-present
Server declares url (measured: 100% of this contract)
$.servers[*]
error
server-description-present
Server declares description (measured: 100% of this contract)
$.servers[*]
error
server-description-min-length
Server.description runs at least 18 characters (measured: 100% of this contract)
$.servers[*].description
warn
operation-summary-min-length
Operation.summary runs at least 12 characters (measured: 96% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].summary
info
operation-description-present
Operation declares description (measured: 88% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
warn
operation-description-min-length
Operation.description runs at least 36 characters (measured: 95% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].description
warn
operation-operationid-casing-camel
Operation.operationId is camel case (measured: 96% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].operationId
error
operation-responses-present
Operation declares responses (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace]
error
parameter-name-present
Parameter declares name (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*]
warn
parameter-name-casing-camel
Parameter.name is camel case (measured: 97% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*].name
error
parameter-in-present
Parameter declares in (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*]
warn
parameter-in-values
Parameter.in is one of body, formData, path, query (measured: 99% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*].in
warn
parameter-description-present
Parameter declares description (measured: 98% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*]
warn
parameter-required-present
Parameter declares required (measured: 98% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].parameters[*]
error
requestbody-content-present
RequestBody declares content (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].requestBody
warn
mediatype-schema-present
MediaType declares schema (measured: 93% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].responses[*].content[*]
error
response-description-present
Response declares description (measured: 100% of this contract)
$.paths[*][get,put,post,delete,patch,options,head,trace].responses[*]
warn
schema-type-present
Schema declares type (measured: 96% of this contract)
$.components.schemas[*]
warn
schema-type-values
Schema.type is one of object, string (measured: 97% of this contract)
$.components.schemas[*].type
error
schema-description-min-length
Schema.description runs at least 13 characters (measured: 100% of this contract)
$.components.schemas[*].description
error
schema-format-values
Schema.format is one of int32 (measured: 100% of this contract)
$.components.schemas[*].format
info
schema-properties-present
Schema declares properties (measured: 84% of this contract)
$.components.schemas[*]
error
securityscheme-type-present
SecurityScheme declares type (measured: 100% of this contract)
$.components.securitySchemes[*]
error
securityscheme-type-values
SecurityScheme.type is one of apiKey, http (measured: 100% of this contract)
$.components.securitySchemes[*].type
error
securityscheme-in-values
SecurityScheme.in is one of cookie (measured: 100% of this contract)
$.components.securitySchemes[*].in
error
securityscheme-scheme-values
SecurityScheme.scheme is one of basic, bearer (measured: 100% of this contract)
$.components.securitySchemes[*].scheme
error
securityscheme-bearerformat-values
SecurityScheme.bearerFormat is one of JWT (measured: 100% of this contract)
$.components.securitySchemes[*].bearerFormat
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.