Blackstone · API Governance Rules

Blackstone API Rules

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

5 Rules warn 5
View Rules File View on GitHub

Rule Categories

blackstone

Rules

warn
blackstone-fund-strategy-enum
Fund strategy must be one of the defined values
$.components.schemas.Fund.properties.strategy
warn
blackstone-currency-required
Financial records must include a currency field
$.components.schemas[*].properties
warn
blackstone-date-iso-format
Date fields must use ISO 8601 format
$.components.schemas[*].properties[?(@.description =~ /date/i)]
warn
blackstone-operations-have-descriptions
All API operations should include descriptions
$.paths[*][*]
warn
blackstone-ids-are-strings
All ID fields should be of type string
$.components.schemas[*].properties[?(@.description =~ /identifier|id/i)]

Spectral Ruleset

blackstone-spectral-rules.yml Raw ↑
rules:
  blackstone-fund-strategy-enum:
    description: Fund strategy must be one of the defined values
    message: "Fund strategy must use a defined enum value"
    given: "$.components.schemas.Fund.properties.strategy"
    then:
      field: enum
      function: truthy

  blackstone-currency-required:
    description: Financial records must include a currency field
    message: "Currency is required on financial records"
    given: "$.components.schemas[*].properties"
    then:
      field: currency
      function: defined

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

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

  blackstone-ids-are-strings:
    description: All ID fields should be of type string
    message: "ID fields must be of type string"
    given: "$.components.schemas[*].properties[?(@.description =~ /identifier|id/i)]"
    then:
      field: type
      function: pattern
      functionOptions:
        match: "^string$"

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