GoHarbor · API Governance Rules

GoHarbor — harbor rules

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

5 Rules error 4 warn 1
Published by GoHarbor Served by the provider at https://github.com/goharbor/harbor/blob/4d425b805f318eb8dfe621842c02bef8dc0c0959/.spectral.yaml; the copy below was fetched from there.
View Rules File View on GitHub

Rule Categories

camel operation requestId required

Rules

error
required-operationId
must have a operationId.
$.paths[*][*]
warn
camel-case-operationId
should be camelCased.
$.paths[*][*].operationId
error
requestId-required
must have a requestId parameters.
$.paths[*][*]
error
operation-description
Every operation must have a description field.
$.paths[*][*]
error
operation-summary-required
Every operation must have a summary field.
$.paths[*][*]

Spectral Ruleset

Raw ↑
# harvested from https://github.com/goharbor/harbor/blob/4d425b805f318eb8dfe621842c02bef8dc0c0959/.spectral.yaml on 2026-10-09 — a Spectral ruleset published in the provider's own GitHub repository (goharbor/harbor); found by GitHub code search, fetched verbatim
x-method: harvested
x-stamped: 2026-10-09
x-source-url: https://github.com/goharbor/harbor/blob/4d425b805f318eb8dfe621842c02bef8dc0c0959/.spectral.yaml
extends: [[spectral:oas, all]]

functionsDir: "./tools/spectral/functions"

functions: [requireRequestId]

rules:
  no-$ref-siblings: false
  oas2-valid-schema-example: false

  required-operationId:
    description: must have a operationId.
    given: $.paths[*][*]
    severity: error
    then:
      field: operationId
      function: truthy

  camel-case-operationId:
    description: should be camelCased.
    type: style
    given: $.paths[*][*].operationId
    then:
      function: casing
      functionOptions:
        type: camel

  requestId-required:
    description: must have a requestId parameters.
    given: $.paths[*][*]
    severity: error
    then:
      field: parameters
      function: requireRequestId

  operation-description:
    description: Every operation must have a description field.
    given: $.paths[*][*]
    severity: error
    then:
      field: description
      function: truthy

  operation-summary-required:
    description: Every operation must have a summary field.
    given: $.paths[*][*]
    severity: error
    then:
      field: summary
      function: truthy

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/goharbor-harbor-spectral-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.