Mindee · API Governance Rules

Mindee API Rules

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

6 Rules error 3 warn 2 info 1
View Rules File View on GitHub

Rule Categories

mindee

Rules

warn
mindee-operation-id-camelcase
Operation IDs should be camelCase.
$.paths[*][get,post,put,patch,delete].operationId
warn
mindee-summary-title-case
Operation summaries should use Title Case.
$.paths[*][get,post,put,patch,delete].summary
error
mindee-tag-required
Every operation must have at least one tag matching a Mindee product family.
$.paths[*][get,post,put,patch,delete].tags
info
mindee-async-pattern
Mindee inference endpoints follow an enqueue/jobs/results async pattern; enqueue endpoints should POST and return 202.
$.paths[?(@property.match(/enqueue$/))].post.responses
error
mindee-server-required
Specs must declare the Mindee V2 server.
$.servers
error
mindee-api-key-header
Security must be the Authorization header API key.
$.components.securitySchemes.APIKeyHeader

Spectral Ruleset

Raw ↑
extends:
  - [spectral:oas, recommended]
rules:
  mindee-operation-id-camelcase:
    description: Operation IDs should be camelCase.
    severity: warn
    given: $.paths[*][get,post,put,patch,delete].operationId
    then:
      function: pattern
      functionOptions:
        match: '^[a-z][a-zA-Z0-9]+$'
  mindee-summary-title-case:
    description: Operation summaries should use Title Case.
    severity: warn
    given: $.paths[*][get,post,put,patch,delete].summary
    then:
      function: pattern
      functionOptions:
        match: '^[A-Z]'
  mindee-tag-required:
    description: Every operation must have at least one tag matching a Mindee product family.
    severity: error
    given: $.paths[*][get,post,put,patch,delete].tags
    then:
      function: length
      functionOptions:
        min: 1
  mindee-async-pattern:
    description: Mindee inference endpoints follow an enqueue/jobs/results async pattern; enqueue endpoints should POST and return 202.
    severity: info
    given: $.paths[?(@property.match(/enqueue$/))].post.responses
    then:
      field: '202'
      function: truthy
  mindee-server-required:
    description: Specs must declare the Mindee V2 server.
    severity: error
    given: $.servers
    then:
      function: length
      functionOptions:
        min: 1
  mindee-api-key-header:
    description: Security must be the Authorization header API key.
    severity: error
    given: $.components.securitySchemes.APIKeyHeader
    then:
      field: 'in'
      function: enumeration
      functionOptions:
        values: ['header']

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/mindee-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.