Bloomberg L.P. · API Governance Rules

Bloomberg L.P. API Rules

Spectral linting rules defining API design standards and conventions for Bloomberg L.P..

8 Rules error 3 warn 4 info 1
View Rules File View on GitHub

Rule Categories

openfigi

Rules

warn
openfigi-operation-summary-title-case
Operation summaries must use Title Case across the OpenFIGI API.
$.paths.*.*.summary
error
openfigi-operation-id-camel-case
Operation IDs should be lowerCamelCase verbs (e.g. mapIdentifiers).
$.paths.*.*.operationId
warn
openfigi-path-versioned
All paths should be hosted under the /v3 server, not include /v3 in the path itself.
$.paths
warn
openfigi-tag-title-case
Tags must be Title Case.
$.tags[*].name
error
openfigi-server-https
Servers must use HTTPS only.
$.servers[*].url
error
openfigi-apikey-header-name
The OpenFIGI API key header is X-OPENFIGI-APIKEY.
$.components.securitySchemes[?(@.type == 'apiKey')]
warn
openfigi-error-responses-required
Every operation must document at least 400, 429, and 5xx responses.
$.paths.*.*.responses
info
openfigi-figi-pattern
FIGI string properties should declare the BBG[A-Z0-9]{9} pattern.
$.components.schemas.FigiRecord.properties.figi

Spectral Ruleset

Raw ↑
extends: ["spectral:oas"]
rules:
  openfigi-operation-summary-title-case:
    description: Operation summaries must use Title Case across the OpenFIGI API.
    severity: warn
    given: "$.paths.*.*.summary"
    then:
      function: pattern
      functionOptions:
        match: "^([A-Z][a-zA-Z0-9'/-]*)( ([A-Z][a-zA-Z0-9'/-]*|For|To|And|Or|The|A|An|With|In|Of|On|By))*$"
  openfigi-operation-id-camel-case:
    description: Operation IDs should be lowerCamelCase verbs (e.g. mapIdentifiers).
    severity: error
    given: "$.paths.*.*.operationId"
    then:
      function: pattern
      functionOptions:
        match: "^[a-z][a-zA-Z0-9]+$"
  openfigi-path-versioned:
    description: All paths should be hosted under the /v3 server, not include /v3 in the path itself.
    severity: warn
    given: "$.paths"
    then:
      field: "@key"
      function: pattern
      functionOptions:
        notMatch: "^/v[0-9]+/"
  openfigi-tag-title-case:
    description: Tags must be Title Case.
    severity: warn
    given: "$.tags[*].name"
    then:
      function: pattern
      functionOptions:
        match: "^[A-Z][a-zA-Z0-9]*( [A-Z][a-zA-Z0-9]*)*$"
  openfigi-server-https:
    description: Servers must use HTTPS only.
    severity: error
    given: "$.servers[*].url"
    then:
      function: pattern
      functionOptions:
        match: "^https://"
  openfigi-apikey-header-name:
    description: The OpenFIGI API key header is X-OPENFIGI-APIKEY.
    severity: error
    given: "$.components.securitySchemes[?(@.type == 'apiKey')]"
    then:
      field: name
      function: pattern
      functionOptions:
        match: "^X-OPENFIGI-APIKEY$"
  openfigi-error-responses-required:
    description: Every operation must document at least 400, 429, and 5xx responses.
    severity: warn
    given: "$.paths.*.*.responses"
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          required: ["400", "429"]
  openfigi-figi-pattern:
    description: FIGI string properties should declare the BBG[A-Z0-9]{9} pattern.
    severity: info
    given: "$.components.schemas.FigiRecord.properties.figi"
    then:
      field: pattern
      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/openfigi-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.