Paperspace · API Governance Rules

Paperspace API Rules

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

5 Rules error 2 warn 3
View Rules File View on GitHub

Rule Categories

paperspace

Rules

warn
paperspace-kebab-case-paths
Path segments use kebab-case (not snake_case or camelCase).
$.paths.*~
warn
paperspace-camel-case-properties
Schema property names use camelCase.
$.components.schemas..properties.*~
error
paperspace-operation-id-camel
operationId is camelCase.
$.paths..operationId
error
paperspace-bearer-auth-required
Operations must use bearerAuth.
$.paths.*.*.security
warn
paperspace-tag-title-case
Tag names use Title Case.
$.tags[*].name

Spectral Ruleset

Raw ↑
extends: spectral:oas
rules:
  # Paperspace path style — kebab-case at every path segment.
  paperspace-kebab-case-paths:
    description: Path segments use kebab-case (not snake_case or camelCase).
    message: '{{property}} must use kebab-case'
    severity: warn
    given: $.paths.*~
    then:
      function: pattern
      functionOptions:
        match: '^(\/([a-z0-9-]+|\{[a-zA-Z]+\}))+$'
  # camelCase property names on JSON bodies.
  paperspace-camel-case-properties:
    description: Schema property names use camelCase.
    message: '{{property}} must be camelCase'
    severity: warn
    given: $.components.schemas..properties.*~
    then:
      function: pattern
      functionOptions:
        match: '^[a-z][a-zA-Z0-9]*$'
  # operationId convention.
  paperspace-operation-id-camel:
    description: operationId is camelCase.
    given: $.paths..operationId
    severity: error
    then:
      function: pattern
      functionOptions:
        match: '^[a-z][a-zA-Z0-9]*$'
  # Bearer auth required.
  paperspace-bearer-auth-required:
    description: Operations must use bearerAuth.
    severity: error
    given: $.paths.*.*.security
    then:
      function: schema
      functionOptions:
        schema:
          type: array
          contains:
            type: object
            required: [bearerAuth]
  # Tags in Title Case.
  paperspace-tag-title-case:
    description: Tag names use Title Case.
    given: $.tags[*].name
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: '^([A-Z][a-zA-Z0-9]*)( [A-Z][a-zA-Z0-9]*)*$'

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