Blobr · API Governance Rules

Blobr API Rules

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

5 Rules warn 5
View Rules File View on GitHub

Rule Categories

blobr

Rules

warn
blobr-campaign-status-enum
Campaign status must use Google Ads enum values
$.components.schemas.Campaign.properties.status
warn
blobr-recommendation-priority-enum
Recommendation priority must be high, medium, or low
$.components.schemas.Recommendation.properties.priority
warn
blobr-recommendation-status-enum
Recommendation status must use defined workflow states
$.components.schemas.Recommendation.properties.status
warn
blobr-budget-micros
Budget amounts should use Google Ads micros format
$.components.schemas.Campaign.properties.budget.properties.amountMicros
warn
blobr-dates-iso8601
Timestamp fields must use ISO 8601 date-time format
$.components.schemas[*].properties[?(@.description =~ /timestamp|created|applied/i)]

Spectral Ruleset

blobr-spectral-rules.yml Raw ↑
rules:
  blobr-campaign-status-enum:
    description: Campaign status must use Google Ads enum values
    message: "Campaign status must be ENABLED, PAUSED, or REMOVED"
    given: "$.components.schemas.Campaign.properties.status"
    then:
      field: enum
      function: truthy

  blobr-recommendation-priority-enum:
    description: Recommendation priority must be high, medium, or low
    message: "Recommendation priority must use defined enum values"
    given: "$.components.schemas.Recommendation.properties.priority"
    then:
      field: enum
      function: truthy

  blobr-recommendation-status-enum:
    description: Recommendation status must use defined workflow states
    message: "Status must be pending, approved, rejected, or applied"
    given: "$.components.schemas.Recommendation.properties.status"
    then:
      field: enum
      function: truthy

  blobr-budget-micros:
    description: Budget amounts should use Google Ads micros format
    message: "Budget amountMicros should be of type integer"
    given: "$.components.schemas.Campaign.properties.budget.properties.amountMicros"
    then:
      field: type
      function: pattern
      functionOptions:
        match: "^integer$"

  blobr-dates-iso8601:
    description: Timestamp fields must use ISO 8601 date-time format
    message: "Date-time fields must specify format: date-time"
    given: "$.components.schemas[*].properties[?(@.description =~ /timestamp|created|applied/i)]"
    then:
      field: format
      function: pattern
      functionOptions:
        match: "^date-time$"

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