Smartproxy · API Governance Rules

Smartproxy API Rules

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

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

Rule Categories

smartproxy

Rules

warn
smartproxy-operation-id-camel-case
Operation IDs must use camelCase
$.paths[*][*].operationId
warn
smartproxy-user-id-path-param
User-scoped endpoints must use {userId} path parameter
$.paths[*]~
warn
smartproxy-operation-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
error
smartproxy-response-200-get
All GET operations must define a 200 response
$.paths[*].get
error
smartproxy-tags-required
All operations must have at least one tag
$.paths[*][*]
warn
smartproxy-delete-returns-204
DELETE operations should return 204 No Content
$.paths[*].delete

Spectral Ruleset

Raw ↑
extends: spectral:oas
rules:
  smartproxy-operation-id-camel-case:
    description: Operation IDs must use camelCase
    message: "Operation ID '{{value}}' should use camelCase (e.g., getSubUsers)"
    severity: warn
    given: "$.paths[*][*].operationId"
    then:
      function: pattern
      functionOptions:
        match: "^[a-z][a-zA-Z0-9]+$"

  smartproxy-user-id-path-param:
    description: User-scoped endpoints must use {userId} path parameter
    message: "User-scoped endpoints should use {userId}"
    severity: warn
    given: "$.paths[*]~"
    then:
      function: pattern
      functionOptions:
        match: "^\\/users(\\/\\{userId\\}|$)|^\\/auth|^\\/endpoints"

  smartproxy-operation-summary-title-case:
    description: Operation summaries must use Title Case
    message: "Summary '{{value}}' should use Title Case"
    severity: warn
    given: "$.paths[*][*].summary"
    then:
      function: pattern
      functionOptions:
        match: "^[A-Z][A-Za-z]*(\\s[A-Z][A-Za-z]*)*$"

  smartproxy-response-200-get:
    description: All GET operations must define a 200 response
    message: "GET operations must define a 200 success response"
    severity: error
    given: "$.paths[*].get"
    then:
      field: responses.200
      function: truthy

  smartproxy-tags-required:
    description: All operations must have at least one tag
    message: "Operation must include at least one tag"
    severity: error
    given: "$.paths[*][*]"
    then:
      field: tags
      function: truthy

  smartproxy-delete-returns-204:
    description: DELETE operations should return 204 No Content
    message: "DELETE operations should define a 204 response"
    severity: warn
    given: "$.paths[*].delete"
    then:
      field: responses.204
      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/smartproxy-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 email required.

A second provider on the same verified email joins the account you already have.