AWS Braket · API Governance Rules

AWS Braket API Rules

Spectral linting rules defining API design standards and conventions for AWS Braket.

7 Rules error 4 warn 3
View Rules File View on GitHub

Rule Categories

aws

Rules

error
aws-braket-info-contact
Every Braket OpenAPI spec must declare the AWS Support contact.
$.info.contact
error
aws-braket-server-https
All Braket service endpoints must be https.
$.servers[*].url
warn
aws-braket-server-hostname
Braket endpoints must use the braket.{region}.amazonaws.com hostname.
$.servers[*].url
warn
aws-braket-summary-title-case
Operation summaries must be Title Case and prefixed with "AWS Braket".
$.paths[*][get,post,put,delete,patch].summary
error
aws-braket-operation-id-camel
operationId must be camelCase.
$.paths[*][get,post,put,delete,patch].operationId
error
aws-braket-sigv4-security
Braket APIs must declare SigV4 security at the root.
$.security
warn
aws-braket-tags-defined
Each path-level tag must be defined at the spec root.
$.paths[*][get,post,put,delete,patch].tags[*]

Spectral Ruleset

Raw ↑
extends:
  - spectral:oas

functions: []

rules:
  aws-braket-info-contact:
    description: Every Braket OpenAPI spec must declare the AWS Support contact.
    given: $.info.contact
    severity: error
    then:
      - field: name
        function: truthy
      - field: url
        function: truthy

  aws-braket-server-https:
    description: All Braket service endpoints must be https.
    given: $.servers[*].url
    severity: error
    then:
      function: pattern
      functionOptions:
        match: '^https://'

  aws-braket-server-hostname:
    description: Braket endpoints must use the braket.{region}.amazonaws.com hostname.
    given: $.servers[*].url
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: 'braket\.(us|eu|ap)-[a-z0-9\-]+\.amazonaws\.com'

  aws-braket-summary-title-case:
    description: Operation summaries must be Title Case and prefixed with "AWS Braket".
    given: $.paths[*][get,post,put,delete,patch].summary
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: '^AWS Braket [A-Z]'

  aws-braket-operation-id-camel:
    description: operationId must be camelCase.
    given: $.paths[*][get,post,put,delete,patch].operationId
    severity: error
    then:
      function: pattern
      functionOptions:
        match: '^[a-z][a-zA-Z0-9]*$'

  aws-braket-sigv4-security:
    description: Braket APIs must declare SigV4 security at the root.
    given: $.security
    severity: error
    then:
      function: truthy

  aws-braket-tags-defined:
    description: Each path-level tag must be defined at the spec root.
    given: $.paths[*][get,post,put,delete,patch].tags[*]
    severity: warn
    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/aws-braket-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.