Regions Financial Corporation · API Governance Rules

Regions Financial Corporation API Rules

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

8 Rules error 2 warn 6
View Rules File View on GitHub

Rule Categories

regions

Rules

warn
regions-operation-ids-camel-case
Operation IDs must use camelCase
$.paths[*][*].operationId
warn
regions-tags-title-case
All tags must use Title Case
$.tags[*].name
warn
regions-v1-prefix
All paths must be prefixed with /v1/
$.paths
error
regions-oauth2-required
API must define OAuth2 security scheme
$.components.securitySchemes
warn
regions-fdx-account-types
Account type enum must include standard FDX types
$.components.schemas.Account.properties.accountType.enum
error
regions-operations-have-summaries
All operations must have a summary
$.paths[*][*]
warn
regions-paths-kebab-case
Path segments must use kebab-case
$.paths
warn
regions-pagination-on-collections
Collection endpoints should include pagination info in response
$.paths[*].get.responses.200.content['application/json'].schema.properties

Spectral Ruleset

Raw ↑
extends: spectral:oas
rules:
  regions-operation-ids-camel-case:
    description: Operation IDs must use camelCase
    message: "{{property}} must be camelCase"
    severity: warn
    given: "$.paths[*][*].operationId"
    then:
      function: pattern
      functionOptions:
        match: "^[a-z][a-zA-Z0-9]*$"

  regions-tags-title-case:
    description: All tags must use Title Case
    message: "Tag '{{value}}' must use Title Case"
    severity: warn
    given: "$.tags[*].name"
    then:
      function: pattern
      functionOptions:
        match: "^[A-Z][a-zA-Z0-9 &]*$"

  regions-v1-prefix:
    description: All paths must be prefixed with /v1/
    message: "Path '{{property}}' must be prefixed with /v1/"
    severity: warn
    given: "$.paths"
    then:
      function: pattern
      functionOptions:
        match: "^/v1/"

  regions-oauth2-required:
    description: API must define OAuth2 security scheme
    message: "Regions Open Banking API must define an OAuth2 securityScheme"
    severity: error
    given: "$.components.securitySchemes"
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          required: ["OAuth2"]

  regions-fdx-account-types:
    description: Account type enum must include standard FDX types
    message: "accountType enum should include FDX-standard values"
    severity: warn
    given: "$.components.schemas.Account.properties.accountType.enum"
    then:
      function: truthy

  regions-operations-have-summaries:
    description: All operations must have a summary
    message: "Operation '{{property}}' is missing a summary"
    severity: error
    given: "$.paths[*][*]"
    then:
      field: summary
      function: truthy

  regions-paths-kebab-case:
    description: Path segments must use kebab-case
    message: "Path '{{property}}' should use kebab-case segments"
    severity: warn
    given: "$.paths"
    then:
      function: pattern
      functionOptions:
        match: "^(/[a-z][a-z0-9-]*(/(\\{[a-zA-Z]+\\}|[a-z][a-z0-9-]*))*)*$"

  regions-pagination-on-collections:
    description: Collection endpoints should include pagination info in response
    message: "List operation should return pagination metadata"
    severity: warn
    given: "$.paths[*].get.responses.200.content['application/json'].schema.properties"
    then:
      field: page
      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/regions-financial-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.