VesselFinder · API Governance Rules

VesselFinder API Rules

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

9 Rules error 6 warn 3
View Rules File View on GitHub

Rule Categories

vesselfinder

Rules

error
vesselfinder-info-contact
VesselFinder OpenAPI documents must declare a contact.
$.info
error
vesselfinder-info-license
VesselFinder OpenAPI documents must declare a license.
$.info
error
vesselfinder-https-only
Servers must use HTTPS.
$.servers[*].url
warn
vesselfinder-operation-summary-title-case
Operation summaries must use Title Case.
$.paths[*][*].summary
error
vesselfinder-operation-description
Every operation must have a description.
$.paths[*][*]
error
vesselfinder-operation-id-camel-case
operationId must be lowerCamelCase.
$.paths[*][*].operationId
warn
vesselfinder-tags-defined
Each operation must reference at least one tag defined in the root tags array.
$.paths[*][*].tags
warn
vesselfinder-userkey-required
Every operation must require the userkey API key parameter (AIS API only).
$.paths[?(@path != '/container/{apiKey}/{containerNumber}/{sealine}')][*].parameters[?(@.name == 'userkey')]
error
vesselfinder-no-trailing-slash
Paths must not end with a trailing slash.
$.paths

Spectral Ruleset

Raw ↑
extends:
  - spectral:oas
rules:
  vesselfinder-info-contact:
    description: VesselFinder OpenAPI documents must declare a contact.
    severity: error
    given: $.info
    then:
      field: contact
      function: truthy
  vesselfinder-info-license:
    description: VesselFinder OpenAPI documents must declare a license.
    severity: error
    given: $.info
    then:
      field: license
      function: truthy
  vesselfinder-https-only:
    description: Servers must use HTTPS.
    severity: error
    given: $.servers[*].url
    then:
      function: pattern
      functionOptions:
        match: '^https://'
  vesselfinder-operation-summary-title-case:
    description: Operation summaries must use Title Case.
    severity: warn
    given: $.paths[*][*].summary
    then:
      function: pattern
      functionOptions:
        match: '^([A-Z][a-zA-Z0-9]*)(\s[A-Z][a-zA-Z0-9]*)*$'
  vesselfinder-operation-description:
    description: Every operation must have a description.
    severity: error
    given: $.paths[*][*]
    then:
      field: description
      function: truthy
  vesselfinder-operation-id-camel-case:
    description: operationId must be lowerCamelCase.
    severity: error
    given: $.paths[*][*].operationId
    then:
      function: pattern
      functionOptions:
        match: '^[a-z][a-zA-Z0-9]+$'
  vesselfinder-tags-defined:
    description: Each operation must reference at least one tag defined in the root tags array.
    severity: warn
    given: $.paths[*][*].tags
    then:
      function: truthy
  vesselfinder-userkey-required:
    description: Every operation must require the userkey API key parameter (AIS API only).
    severity: warn
    given: "$.paths[?(@path != '/container/{apiKey}/{containerNumber}/{sealine}')][*].parameters[?(@.name == 'userkey')]"
    then:
      field: required
      function: truthy
  vesselfinder-no-trailing-slash:
    description: Paths must not end with a trailing slash.
    severity: error
    given: $.paths
    then:
      function: pattern
      functionOptions:
        notMatch: '/$'

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