SnapLogic · API Governance Rules

SnapLogic API Rules

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

8 Rules error 2 warn 4 info 2
View Rules File View on GitHub

Rule Categories

snaplogic

Rules

warn
snaplogic-operation-id-camel-case
Operation IDs must use camelCase naming convention
$.paths[*][*].operationId
error
snaplogic-security-defined
All SnapLogic API operations must define security (JWT or Basic Auth)
$.paths[*][get,post,put,delete,patch]
warn
snaplogic-operation-tag
All operations must have at least one tag for grouping
$.paths[*][get,post,put,delete,patch]
warn
snaplogic-operation-summary
All operations must have a summary in Title Case
$.paths[*][get,post,put,delete,patch]
info
snaplogic-operation-description
All operations should have a detailed description
$.paths[*][get,post,put,delete,patch]
warn
snaplogic-success-response-schema
All successful responses should define a schema
$.paths[*][*].responses['200'].content
error
snaplogic-path-params-defined
All path parameters must be defined in the parameters section
$.paths[*][*].parameters[*][?(@.in == 'path')]
info
snaplogic-server-variables
Server URLs should include org variable for multi-tenant support
$.servers[*].url

Spectral Ruleset

Raw ↑
extends: spectral:oas
rules:
  # Operation naming
  snaplogic-operation-id-camel-case:
    description: Operation IDs must use camelCase naming convention
    message: "operationId '{{value}}' must be camelCase"
    severity: warn
    given: "$.paths[*][*].operationId"
    then:
      function: pattern
      functionOptions:
        match: "^[a-z][a-zA-Z0-9]*$"

  # Auth requirements
  snaplogic-security-defined:
    description: All SnapLogic API operations must define security (JWT or Basic Auth)
    message: "Operation must define security requirements (JWT bearer or Basic Auth)"
    severity: error
    given: "$.paths[*][get,post,put,delete,patch]"
    then:
      field: security
      function: truthy

  # Tag requirements
  snaplogic-operation-tag:
    description: All operations must have at least one tag for grouping
    message: "Operation must have at least one tag"
    severity: warn
    given: "$.paths[*][get,post,put,delete,patch]"
    then:
      field: tags
      function: truthy

  # Summary requirements
  snaplogic-operation-summary:
    description: All operations must have a summary in Title Case
    message: "Operation must have a summary"
    severity: warn
    given: "$.paths[*][get,post,put,delete,patch]"
    then:
      field: summary
      function: truthy

  # Description requirements
  snaplogic-operation-description:
    description: All operations should have a detailed description
    message: "Operation should have a description"
    severity: info
    given: "$.paths[*][get,post,put,delete,patch]"
    then:
      field: description
      function: truthy

  # Response schema
  snaplogic-success-response-schema:
    description: All successful responses should define a schema
    message: "200/201 response should have a defined schema"
    severity: warn
    given: "$.paths[*][*].responses['200'].content"
    then:
      function: truthy

  # Path parameter consistency
  snaplogic-path-params-defined:
    description: All path parameters must be defined in the parameters section
    message: "Path parameters must be defined"
    severity: error
    given: "$.paths[*][*].parameters[*][?(@.in == 'path')]"
    then:
      field: required
      function: truthy

  # Server variables
  snaplogic-server-variables:
    description: Server URLs should include org variable for multi-tenant support
    message: "Server URL should include {org} variable for SnapLogic multi-tenancy"
    severity: info
    given: "$.servers[*].url"
    then:
      function: pattern
      functionOptions:
        match: ".*\\{org\\}.*"

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