Microcks · API Governance Rules
Microcks — microcks spectral ruleset rules
Spectral linting rules defining API design standards and conventions for Microcks.
11 Rules
warn 10
info 1
Published by Microcks
Served by the provider at https://github.com/microcks/microcks-spectral-ruleset/blob/b42c0030c31e6fb64e66b6f17ebb8be1b75ceb3d/microcks-rules.yaml; the copy below was fetched from there.
Rule Categories
microcks
Rules
warn
microcks-info-extension-valid
x-microcks extension must be valid
$.info.x-microcks
warn
microcks-operation-extension-valid
x-microcks-operation extension must be valid
$.paths.*.*.x-microcks-operation$.channels.*.[publish,subscribe].x-microcks-operation$.operations.*.x-microcks-operation
warn
microcks-examples-in-required-parameter
Required param must have examples
$..parameters[?(@ && @.required == true)]
info
microcks-examples-in-optional-parameter
Optional param should have examples
$..parameters[?(@ && @.required != true)]
warn
microcks-examples-in-request-content
Request with content must have examples
$.paths..requestBody..content.*
warn
microcks-examples-in-response-content
Response with content must have examples
$.paths..responses..content.*
warn
microcks-examples-fragments-to-complete-mocks
Response example must match required params examples to form full mocks
$.paths.*.*
warn
microcks-aas-examples-in-messages
Message must have examples
$.channels.*.[publish,subscribe].message
warn
microcks-aas3-examples-in-messages
Message must have examples
$.components.messages.*
warn
microcks-aas-examples-in-parameter
Parameter must have examples
$.channels.*.parameters.*.schema
warn
microcks-aas-examples-fragments-to-complete-mocks
Message example must match params examples to form full mocks
$.channels.*
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.