Spendflo · API Governance Rules

Spendflo API Rules

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

4 Rules error 2 warn 2
View Rules File View on GitHub

Rule Categories

spendflo

Rules

error
spendflo-operationid-required
All API operations should have an operationId for Spendflo integration mapping.
$.paths[*][get,post,put,patch,delete,options,head]
error
spendflo-summary-required
All API operations should have a summary describing the procurement action.
$.paths[*][get,post,put,patch,delete]
warn
spendflo-tags-required
Operations should be tagged by procurement domain (Vendors, Contracts, Spend, etc.).
$.paths[*][get,post,put,patch,delete]
warn
spendflo-error-responses-defined
Operations should document error responses for procurement workflow error handling.
$.paths[*][post,put,patch,delete].responses

Spectral Ruleset

spendflo-rules.yml Raw ↑
extends: "spectral:oas"

rules:
  spendflo-operationid-required:
    description: All API operations should have an operationId for Spendflo integration mapping.
    message: "Operation at {{path}} must have an operationId."
    severity: error
    given: "$.paths[*][get,post,put,patch,delete,options,head]"
    then:
      field: operationId
      function: truthy

  spendflo-summary-required:
    description: All API operations should have a summary describing the procurement action.
    message: "Operation {{path}} is missing a summary."
    severity: error
    given: "$.paths[*][get,post,put,patch,delete]"
    then:
      field: summary
      function: truthy

  spendflo-tags-required:
    description: Operations should be tagged by procurement domain (Vendors, Contracts, Spend, etc.).
    message: "Operation {{path}} should have at least one domain tag."
    severity: warn
    given: "$.paths[*][get,post,put,patch,delete]"
    then:
      field: tags
      function: truthy

  spendflo-error-responses-defined:
    description: Operations should document error responses for procurement workflow error handling.
    message: "Operation {{path}} should define error response codes (400, 401, 403, 404)."
    severity: warn
    given: "$.paths[*][post,put,patch,delete].responses"
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          minProperties: 2

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/spendflo-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 email required.

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