Ball Corporation · API Governance Rules

Ball Corporation API Rules

Spectral linting rules defining API design standards and conventions for Ball Corporation.

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

Rule Categories

ball

Rules

error
ball-info-title-required
API title must be present.
$.info
warn
ball-info-description-required
API description must be present.
$.info
error
ball-info-version-required
API version must be present.
$.info
error
ball-operation-id-required
All operations must have an operationId.
$.paths[*][get,post,put,patch,delete]
warn
ball-operation-summary-required
All operations must have a summary.
$.paths[*][get,post,put,patch,delete]
error
ball-response-200-required
GET operations must define a 200 response.
$.paths[*].get.responses
warn
ball-schema-description-required
All named schemas must have a description.
$.components.schemas[*]

Spectral Ruleset

ball-spectral-rules.yml Raw ↑
rules:
  # Note: Ball Corporation does not expose public developer APIs.
  # These rules would apply if/when Ball Corporation publishes partner or supply chain APIs.

  ball-info-title-required:
    description: API title must be present.
    message: "API info must include a title."
    severity: error
    given: "$.info"
    then:
      field: title
      function: truthy

  ball-info-description-required:
    description: API description must be present.
    message: "API info must include a description."
    severity: warn
    given: "$.info"
    then:
      field: description
      function: truthy

  ball-info-version-required:
    description: API version must be present.
    message: "API info must include a version."
    severity: error
    given: "$.info"
    then:
      field: version
      function: truthy

  ball-operation-id-required:
    description: All operations must have an operationId.
    message: "Operation must have an operationId."
    severity: error
    given: "$.paths[*][get,post,put,patch,delete]"
    then:
      field: operationId
      function: truthy

  ball-operation-summary-required:
    description: All operations must have a summary.
    message: "Operation must have a summary."
    severity: warn
    given: "$.paths[*][get,post,put,patch,delete]"
    then:
      field: summary
      function: truthy

  ball-response-200-required:
    description: GET operations must define a 200 response.
    message: "GET operations must define a 200 success response."
    severity: error
    given: "$.paths[*].get.responses"
    then:
      field: "200"
      function: truthy

  ball-schema-description-required:
    description: All named schemas must have a description.
    message: "Schema components must have a description."
    severity: warn
    given: "$.components.schemas[*]"
    then:
      field: description
      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/ball-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.