Ship24 · API Governance Rules

Ship24 API Rules

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

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

Rule Categories

ship24

Rules

error
ship24-info-title
Info.title MUST mention Ship24.
$.info.title
error
ship24-info-description-required
Info.description MUST be non-empty for a tracking API.
$.info.description
error
ship24-server-base-url
At least one server URL MUST point to api.ship24.com.
$.servers[*].url
error
ship24-bearer-security
Bearer token security scheme MUST be declared.
$.components.securitySchemes
warn
ship24-operation-summary-title-case
Operation summaries SHOULD use Title Case.
$.paths.*[get,post,put,patch,delete].summary
error
ship24-operation-tags-required
Every operation MUST declare at least one tag.
$.paths.*[get,post,put,patch,delete]
error
ship24-operation-id-required
Every operation MUST declare an operationId.
$.paths.*[get,post,put,patch,delete]
warn
ship24-tracker-path-shape
Tracker paths SHOULD live under /public/v1/trackers.
$.paths[?(@property.match(/tracker/i))]~
info
ship24-rate-limit-documentation
Description SHOULD mention rate limits or link to docs.ship24.com/rate-limiter.
$.info.description

Spectral Ruleset

Raw ↑
extends: spectral:oas
rules:
  ship24-info-title:
    description: Info.title MUST mention Ship24.
    severity: error
    given: "$.info.title"
    then:
      function: pattern
      functionOptions:
        match: "Ship24"

  ship24-info-description-required:
    description: Info.description MUST be non-empty for a tracking API.
    severity: error
    given: "$.info.description"
    then:
      function: truthy

  ship24-server-base-url:
    description: At least one server URL MUST point to api.ship24.com.
    severity: error
    given: "$.servers[*].url"
    then:
      function: pattern
      functionOptions:
        match: "api\\.ship24\\.com"

  ship24-bearer-security:
    description: Bearer token security scheme MUST be declared.
    severity: error
    given: "$.components.securitySchemes"
    then:
      function: truthy

  ship24-operation-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]"

  ship24-operation-tags-required:
    description: Every operation MUST declare at least one tag.
    severity: error
    given: "$.paths.*[get,post,put,patch,delete]"
    then:
      field: tags
      function: truthy

  ship24-operation-id-required:
    description: Every operation MUST declare an operationId.
    severity: error
    given: "$.paths.*[get,post,put,patch,delete]"
    then:
      field: operationId
      function: truthy

  ship24-tracker-path-shape:
    description: Tracker paths SHOULD live under /public/v1/trackers.
    severity: warn
    given: "$.paths[?(@property.match(/tracker/i))]~"
    then:
      function: pattern
      functionOptions:
        match: "^/public/v1/trackers"

  ship24-rate-limit-documentation:
    description: Description SHOULD mention rate limits or link to docs.ship24.com/rate-limiter.
    severity: info
    given: "$.info.description"
    then:
      function: pattern
      functionOptions:
        match: "(rate|limit|throttl)"

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