Hunter · API Governance Rules

Hunter API Rules

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

10 Rules error 5 warn 4 info 1
View Rules File View on GitHub

Rule Categories

hunter

Rules

error
hunter-operation-summary-required
All operations must have a summary.
$.paths[*][get,post,put,patch,delete]
warn
hunter-operation-summary-title-case
Operation summaries must use Title Case starting with 'Hunter'.
$.paths[*][get,post,put,patch,delete].summary
error
hunter-operation-description-required
All operations must have a description.
$.paths[*][get,post,put,patch,delete]
error
hunter-operation-id-camelcase
operationId must be camelCase.
$.paths[*][get,post,put,patch,delete].operationId
error
hunter-tags-required
Every operation must have at least one tag.
$.paths[*][get,post,put,patch,delete]
warn
hunter-security-defined
Authenticated endpoints must declare a security scheme.
$.paths[*][get,post,put,patch,delete]
error
hunter-server-https
Servers must use HTTPS.
$.servers[*].url
warn
hunter-base-path-v2
All Hunter servers should target the v2 base path.
$.servers[*].url
warn
hunter-error-schema-defined
An Error schema must be defined.
$.components.schemas
info
hunter-snake-case-params
Hunter query parameters use snake_case.
$.paths[*][*].parameters[?(@.in == 'query')].name

Spectral Ruleset

Raw ↑
extends:
  - spectral:oas
rules:
  hunter-operation-summary-required:
    description: All operations must have a summary.
    severity: error
    given: '$.paths[*][get,post,put,patch,delete]'
    then:
      field: summary
      function: truthy
  hunter-operation-summary-title-case:
    description: Operation summaries must use Title Case starting with 'Hunter'.
    severity: warn
    given: '$.paths[*][get,post,put,patch,delete].summary'
    then:
      function: pattern
      functionOptions:
        match: '^Hunter [A-Z]'
  hunter-operation-description-required:
    description: All operations must have a description.
    severity: error
    given: '$.paths[*][get,post,put,patch,delete]'
    then:
      field: description
      function: truthy
  hunter-operation-id-camelcase:
    description: operationId must be camelCase.
    severity: error
    given: '$.paths[*][get,post,put,patch,delete].operationId'
    then:
      function: pattern
      functionOptions:
        match: '^[a-z][a-zA-Z0-9]+$'
  hunter-tags-required:
    description: Every operation must have at least one tag.
    severity: error
    given: '$.paths[*][get,post,put,patch,delete]'
    then:
      field: tags
      function: truthy
  hunter-security-defined:
    description: Authenticated endpoints must declare a security scheme.
    severity: warn
    given: '$.paths[*][get,post,put,patch,delete]'
    then:
      field: security
      function: defined
  hunter-server-https:
    description: Servers must use HTTPS.
    severity: error
    given: '$.servers[*].url'
    then:
      function: pattern
      functionOptions:
        match: '^https://'
  hunter-base-path-v2:
    description: All Hunter servers should target the v2 base path.
    severity: warn
    given: '$.servers[*].url'
    then:
      function: pattern
      functionOptions:
        match: 'api\\.hunter\\.io/v2$'
  hunter-error-schema-defined:
    description: An Error schema must be defined.
    severity: warn
    given: '$.components.schemas'
    then:
      field: Error
      function: truthy
  hunter-snake-case-params:
    description: Hunter query parameters use snake_case.
    severity: info
    given: '$.paths[*][*].parameters[?(@.in == ''query'')].name'
    then:
      function: pattern
      functionOptions:
        match: '^[a-z][a-z0-9_]*$'

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/hunter-io-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.