Zluri · API Governance Rules

Zluri API Rules

Spectral linting rules defining API design standards and conventions for Zluri.

7 Rules error 3 warn 4
View Rules File View on GitHub

Rule Categories

zluri

Rules

warn
zluri-summary-prefix
All operation summaries must start with "Zluri"
$.paths.*[get,post,put,delete,patch].summary
error
zluri-operation-id
Every operation must have an operationId
$.paths.*[get,post,put,delete,patch]
warn
zluri-operation-tags
Every operation must have at least one tag
$.paths.*[get,post,put,delete,patch]
warn
zluri-operation-description
Every operation must have a description
$.paths.*[get,post,put,delete,patch]
error
zluri-bearer-auth
Bearer auth security scheme must be defined
$.components.securitySchemes.bearerAuth
warn
zluri-rate-limit-response
List operations should declare 429 rate limit responses
$.paths.*[get].responses
error
zluri-server-defined
Servers must be defined
$.servers

Spectral Ruleset

Raw ↑
extends:
  - spectral:oas
rules:
  zluri-summary-prefix:
    description: All operation summaries must start with "Zluri"
    severity: warn
    given: "$.paths.*[get,post,put,delete,patch].summary"
    then:
      function: pattern
      functionOptions:
        match: "^Zluri "
  zluri-operation-id:
    description: Every operation must have an operationId
    severity: error
    given: "$.paths.*[get,post,put,delete,patch]"
    then:
      field: operationId
      function: truthy
  zluri-operation-tags:
    description: Every operation must have at least one tag
    severity: warn
    given: "$.paths.*[get,post,put,delete,patch]"
    then:
      field: tags
      function: truthy
  zluri-operation-description:
    description: Every operation must have a description
    severity: warn
    given: "$.paths.*[get,post,put,delete,patch]"
    then:
      field: description
      function: truthy
  zluri-bearer-auth:
    description: Bearer auth security scheme must be defined
    severity: error
    given: "$.components.securitySchemes.bearerAuth"
    then:
      function: truthy
  zluri-rate-limit-response:
    description: List operations should declare 429 rate limit responses
    severity: warn
    given: "$.paths.*[get].responses"
    then:
      field: "429"
      function: truthy
  zluri-server-defined:
    description: Servers must be defined
    severity: error
    given: "$.servers"
    then:
      function: truthy

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/zluri-spectral"
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 email required.

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