Lago · API Governance Rules
Lago — lago openapi rules
Spectral linting rules defining API design standards and conventions for Lago.
4 Rules
error 3
warn 1
Published by Lago
Served by the provider at https://github.com/getlago/lago-openapi/blob/0607afeb3ab69b138485b64d96fc43cdce000d15/.spectral.yml; the copy below was fetched from there.
Rule Categories
array
deprecated
Rules
error
array-params-brackets
Array parameters should end with square brackets.
$.paths.*.*.parameters[?(@.in == 'query' && @.schema.type == 'array')]
warn
array-params-plural
Array parameters should be plural.
$.paths.*.*.parameters[?(@.in == 'query' && @.schema.type == 'array')]
error
deprecated-parameter-must-mention-in-description
Deprecated parameters must mention the deprecation in their description.
$.paths.*.*.parameters[?(@ && @.deprecated == true)]
error
deprecated-schema-property-must-mention-in-description
Deprecated schema properties must mention the deprecation in their description.
$..properties[?(@ && @.deprecated == true)]
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.