Design Standards · API Governance Rules

Design Standards API Rules

Spectral linting rules defining API design standards and conventions for Design Standards.

0 Rules
View Rules File View on GitHub

Spectral Ruleset

design-standards-rules.yml Raw ↑
x-name: Design Standards Rules
description: Rules for adopting and operating design standards across products, interfaces, and APIs.
x-version: 1.0.0
x-created: 2026-04-28
x-modified: 2026-04-28
rules:
  - id: DS-001
    name: Publish a Single Source of Truth
    severity: error
    description: Maintain one canonical, versioned design standards document referenced by all teams.
    rationale: Multiple competing copies guarantee drift and contradicting guidance.

  - id: DS-002
    name: Standards Must Be Machine-Checkable
    severity: warning
    description: Express each standard so that a linter, schema, or test can enforce it.
    rationale: Human-only review is inconsistent; automation enforces evenly across teams.

  - id: DS-003
    name: Use RFC 2119 Keywords
    severity: warning
    description: State requirements with MUST, SHOULD, MAY, and their negations from RFC 2119.
    rationale: Precise requirement levels remove ambiguity from compliance reviews.

  - id: DS-004
    name: Define Naming Conventions
    severity: error
    description: Standardize casing for resources, properties, query parameters, and headers (kebab-case URLs, snake_case or camelCase fields, consistently).
    rationale: Mixed casing increases cognitive load and breaks code generation.

  - id: DS-005
    name: Adopt ISO Date and Currency Formats
    severity: error
    description: Use ISO 8601 for dates and times, ISO 4217 for currency, and ISO 3166 for country codes.
    rationale: International standards interoperate with libraries, locales, and partner systems.

  - id: DS-006
    name: Specify Authentication Standard
    severity: error
    description: Mandate a single authentication scheme (OAuth 2.0, OIDC, or signed JWT) for production APIs.
    rationale: One scheme reduces integration cost and centralizes security review.

  - id: DS-007
    name: Define Error Response Shape
    severity: error
    description: Adopt RFC 7807 problem+json or an equivalent typed error object.
    rationale: Consistent errors let consumer SDKs handle failures without per-API special cases.

  - id: DS-008
    name: Mandate API-First Development
    severity: warning
    description: Specifications (OpenAPI, AsyncAPI, JSON Schema) must exist before implementation begins.
    rationale: API-first surfaces design issues cheaply and produces durable contracts.

  - id: DS-009
    name: Version with SemVer
    severity: warning
    description: Use semantic versioning for published specifications and SDKs.
    rationale: SemVer signals breaking change intent in a single number.

  - id: DS-010
    name: Document Deprecation Policy
    severity: warning
    description: Reference a deprecation policy that defines notice windows, headers, and migration support.
    rationale: Standards without an exit lifecycle compound technical debt.

  - id: DS-011
    name: Accessibility Conformance
    severity: error
    description: Visual and interactive standards must meet WCAG 2.1 AA at minimum.
    rationale: Accessibility is a baseline product requirement, not an enhancement.

  - id: DS-012
    name: Style Guide Linting
    severity: warning
    description: Run Spectral or equivalent lint rules against every specification in CI.
    rationale: Continuous linting prevents regressions and shortens review cycles.

  - id: DS-013
    name: Standards Governance
    severity: info
    description: Designate an owning body, RFC process, and review cadence for standards changes.
    rationale: Without governance, standards stagnate or fragment.

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/design-standards-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.