BB&T Corp (Truist) · API Governance Rules

BB&T Corp (Truist) API Rules

Spectral linting rules defining API design standards and conventions for BB&T Corp (Truist).

5 Rules error 2 warn 1 info 2
View Rules File View on GitHub

Rule Categories

truist

Rules

error
truist-bearer-auth-required
All Truist API operations must use OAuth 2.0 Bearer authentication.
$.paths.*.*.security
error
truist-operation-id-required
All Truist API operations must have an operationId.
$.paths.*.*
warn
truist-response-200-required
All GET operations should define a 200 success response.
$.paths.*.get.responses
info
truist-error-responses-defined
Operations should define standard error responses.
$.paths.*.*.responses
info
truist-pagination-parameters
List operations should support pagination parameters.
$.paths[?(@property.match('accounts|transactions'))].get.parameters

Spectral Ruleset

Raw ↑
rules:
  truist-bearer-auth-required:
    description: All Truist API operations must use OAuth 2.0 Bearer authentication.
    message: Operation must include OAuth2 or BearerAuth security requirement.
    severity: error
    given: $.paths.*.*.security
    then:
      function: schema
      functionOptions:
        schema:
          type: array
          minItems: 1

  truist-operation-id-required:
    description: All Truist API operations must have an operationId.
    message: Operation is missing operationId.
    severity: error
    given: $.paths.*.*
    then:
      field: operationId
      function: truthy

  truist-response-200-required:
    description: All GET operations should define a 200 success response.
    message: GET operation is missing a 200 response.
    severity: warn
    given: $.paths.*.get.responses
    then:
      field: '200'
      function: truthy

  truist-error-responses-defined:
    description: Operations should define standard error responses.
    message: Consider defining 400, 401, and 403 error responses.
    severity: info
    given: $.paths.*.*.responses
    then:
      field: '401'
      function: truthy

  truist-pagination-parameters:
    description: List operations should support pagination parameters.
    message: Consider adding page/limit or cursor pagination to list operations.
    severity: info
    given: $.paths[?(@property.match('accounts|transactions'))].get.parameters
    then:
      function: schema
      functionOptions:
        schema:
          type: array
          minItems: 1

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