Nanonets · API Governance Rules

Nanonets API Rules

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

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

Rule Categories

nanonets

Rules

warn
nanonets-info-contact
Every Nanonets OpenAPI must include the canonical contact block.
$.info.contact
error
nanonets-server-base
All Nanonets servers must point at app.nanonets.com.
$.servers[*].url
warn
nanonets-basic-auth
Nanonets APIs authenticate with HTTP Basic.
$.components.securitySchemes[*]
warn
nanonets-operation-summary
Every operation must have a Title Case summary.
$.paths.*[get,post,put,patch,delete].summary
error
nanonets-operation-id-required
Every operation must have an operationId.
$.paths.*[get,post,put,patch,delete]
warn
nanonets-tag-defined
Operations must declare at least one tag.
$.paths.*[get,post,put,patch,delete]
error
nanonets-https-only
All servers must be HTTPS — HTTP is rejected by Nanonets.
$.servers[*].url

Spectral Ruleset

Raw ↑
extends:
  - spectral:oas
rules:
  nanonets-info-contact:
    description: Every Nanonets OpenAPI must include the canonical contact block.
    severity: warn
    given: $.info.contact
    then:
      - field: name
        function: pattern
        functionOptions:
          match: '^Nanonets$'
      - field: email
        function: pattern
        functionOptions:
          match: '^support@nanonets\.com$'
  nanonets-server-base:
    description: All Nanonets servers must point at app.nanonets.com.
    severity: error
    given: $.servers[*].url
    then:
      function: pattern
      functionOptions:
        match: '^https://app\.nanonets\.com'
  nanonets-basic-auth:
    description: Nanonets APIs authenticate with HTTP Basic.
    severity: warn
    given: $.components.securitySchemes[*]
    then:
      - field: type
        function: pattern
        functionOptions: { match: '^http$' }
      - field: scheme
        function: pattern
        functionOptions: { match: '^basic$' }
  nanonets-operation-summary:
    description: Every operation must have a Title Case summary.
    severity: warn
    given: $.paths.*[get,post,put,patch,delete].summary
    then:
      function: pattern
      functionOptions:
        match: '^([A-Z][a-zA-Z0-9]*)(\s[A-Z][a-zA-Z0-9]*)*'
  nanonets-operation-id-required:
    description: Every operation must have an operationId.
    severity: error
    given: $.paths.*[get,post,put,patch,delete]
    then:
      field: operationId
      function: truthy
  nanonets-tag-defined:
    description: Operations must declare at least one tag.
    severity: warn
    given: $.paths.*[get,post,put,patch,delete]
    then:
      field: tags
      function: truthy
  nanonets-https-only:
    description: All servers must be HTTPS — HTTP is rejected by Nanonets.
    severity: error
    given: $.servers[*].url
    then:
      function: pattern
      functionOptions:
        match: '^https://'

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