BlackRock · API Governance Rules

BlackRock API Rules

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

5 Rules warn 5
View Rules File View on GitHub

Rule Categories

blackrock

Rules

warn
blackrock-portfolio-id-required
Portfolio requests must include a portfolioId field
$.components.schemas.*.properties
warn
blackrock-date-format
Date fields must use ISO 8601 date format
$.components.schemas[*].properties[?(@.description =~ /date/i)]
warn
blackrock-currency-iso
Currency fields must be documented as ISO 4217
$.components.schemas[*].properties.currency
warn
blackrock-operations-have-summary
All API operations must include a summary
$.paths[*][*]
warn
blackrock-security-defined
API must define at least one security scheme
$.components.securitySchemes

Spectral Ruleset

blackrock-spectral-rules.yml Raw ↑
rules:
  blackrock-portfolio-id-required:
    description: Portfolio requests must include a portfolioId field
    message: "{{description}}"
    given: "$.components.schemas.*.properties"
    then:
      field: portfolioId
      function: defined

  blackrock-date-format:
    description: Date fields must use ISO 8601 date format
    message: "Date fields must specify format: date"
    given: "$.components.schemas[*].properties[?(@.description =~ /date/i)]"
    then:
      field: format
      function: pattern
      functionOptions:
        match: "^date"

  blackrock-currency-iso:
    description: Currency fields must be documented as ISO 4217
    message: "Currency fields should reference ISO 4217"
    given: "$.components.schemas[*].properties.currency"
    then:
      field: type
      function: pattern
      functionOptions:
        match: "^string$"

  blackrock-operations-have-summary:
    description: All API operations must include a summary
    message: "Operation is missing a summary"
    given: "$.paths[*][*]"
    then:
      field: summary
      function: truthy

  blackrock-security-defined:
    description: API must define at least one security scheme
    message: "API must define security schemes"
    given: "$.components.securitySchemes"
    then:
      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/blackrock-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.