SWIFT · API Governance Rules
SWIFT API Rules
Spectral linting rules defining API design standards and conventions for SWIFT.
8 Rules
warn 7
Rule Categories
swift
Rules
warn
swift-oauth2-security
SWIFT API endpoints must use OAuth2 security scheme
$.components.securitySchemes
warn
swift-identifier-pattern
Financial identifier path parameters must have regex pattern validation
$.components.parameters[?(@.in == 'path')].schema
warn
swift-versioned-paths
SWIFT API paths should include version prefix (/v2/)
$.paths
warn
swift-operation-id-camel-case
Operation IDs must use camelCase naming convention
$.paths[*][get,post,put,patch,delete]
warn
swift-summary-title-case
Operation summaries must use Title Case
$.paths[*][get,post,put,patch,delete].summary
hint
swift-validity-response
Validation endpoints should return a validity result with a 'valid' boolean
$.paths[?(@property.endsWith('validity'))].get.responses.200.content.application/json.schema
warn
swift-not-found-response
GET lookup endpoints should document 404 responses
$.paths[*].get.responses
warn
swift-operation-tags
All operations must have at least one tag
$.paths[*][get,post,put,patch,delete]
Spectral Ruleset
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.
Call it yourself
curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/swift-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.