Elastic · API Governance Rules
Elastic — apm server rules
Spectral linting rules defining API design standards and conventions for Elastic.
6 Rules
error 2
warn 3
info 1
Published by Elastic
Served by the provider at https://github.com/elastic/apm-server/blob/c1dc5a1569eb2da398194bf64012c66387ddcae3/docs/spec/openapi/.spectral.yaml; the copy below was fetched from there.
Rule Categories
avoid
internal
operation
simple
Rules
warn
avoid-problematic-words
Ban certain words from descriptions
$..*.description
info
operation-success-examples
Response code 200 should have at least one example.
$.paths[*].[*].responses.[200].content.[application/json]
error
internal-extension
Operations should not have x-internal extension.
$.paths[*].[get,put,post,delete,options,head,patch,trace]
error
operation-summary
Operations should have summaries.
$.paths[*].[get,put,post,delete,options,head,patch,trace]
warn
operation-summary-length
Operation summary should be between 5 and 45 characters
$.paths[*].[get,put,post,delete,options,head,patch,trace]
warn
simple-verbs-in-summary
Summaries should use common verbs.
$.paths[*][*].summary
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.