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.
View Rules File View on GitHub

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

Raw ↑
# harvested from https://github.com/getlago/lago-openapi/blob/0607afeb3ab69b138485b64d96fc43cdce000d15/.spectral.yml on 2026-10-09 — a Spectral ruleset published in the provider's own GitHub repository (getlago/lago-openapi); found by GitHub code search, fetched verbatim
x-method: harvested
x-stamped: 2026-10-09
x-source-url: https://github.com/getlago/lago-openapi/blob/0607afeb3ab69b138485b64d96fc43cdce000d15/.spectral.yml
extends: ["spectral:oas"]
functions: [plural]
rules:
  array-params-brackets:
    message: "Array parameter {{value}} should end with square brackets: {{value}}[]"
    description: Array parameters should end with square brackets.
    severity: error
    given: "$.paths.*.*.parameters[?(@.in == 'query' && @.schema.type == 'array')]"
    then:
      - field: name
        function: pattern
        functionOptions:
          match: "^[a-z][a-z_]+\\[\\]$"
  array-params-plural:
    message: "Array parameter {{value}} should be plural"
    description: Array parameters should be plural.
    severity: warn
    given: "$.paths.*.*.parameters[?(@.in == 'query' && @.schema.type == 'array')]"
    then:
      - field: name
        function: plural
  deprecated-parameter-must-mention-in-description:
    message: "Deprecated parameter at {{path}} must start with '**Deprecated**.' in its description."
    description: Deprecated parameters must mention the deprecation in their description.
    severity: error
    given: "$.paths.*.*.parameters[?(@ && @.deprecated == true)]"
    then:
      - field: description
        function: truthy
      - field: description
        function: pattern
        functionOptions:
          match: "/^\\*\\*Deprecated\\.\\*\\*/"
  deprecated-schema-property-must-mention-in-description:
    message: "Deprecated schema property at {{path}} must start with '**Deprecated**.' in its description."
    description: Deprecated schema properties must mention the deprecation in their description.
    severity: error
    given: "$..properties[?(@ && @.deprecated == true)]"
    then:
      - field: description
        function: truthy
      - field: description
        function: pattern
        functionOptions:
          match: "/^\\*\\*Deprecated\\.\\*\\*/"

Work with this as data

Every ruleset here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for spectral rules

4 MCP tools reach this
  • find_rulesBrowse and filter every ruleset in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/lago-lago-openapi-spectral-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.