S&P Global · API Governance Rules
S&P Global API Rules
Spectral linting rules defining API design standards and conventions for S&P Global.
14 Rules
error 2
warn 10
info 2
Rule Categories
no
query
schema
security
servers
spg
Rules
warn
spg-summary-title-case
All operation summaries must use Title Case
$.paths[*][*].summary
warn
spg-tags-title-case
All tags must use Title Case
$.paths[*][*].tags[*]
error
spg-bearer-auth-required
All non-auth operations must use Bearer token authentication
$.paths[?(!@ == '/auth/api')][get,post,put,patch,delete]
warn
spg-operation-ids-camel-case
Operation IDs must use camelCase
$.paths[*][*].operationId
warn
spg-date-params-format
Date parameters must use YYYY-MM-DD format
$.paths[*][*].parameters[?(@.name =~ /[Dd]ate/)]
warn
spg-pagination-params
List operations should include pageSize and page parameters
$.paths[*][get]
warn
spg-parameters-have-descriptions
All parameters must have descriptions
$.paths[*][*].parameters[*]
warn
spg-schema-names-pascal-case
Component schema names must use PascalCase
$.components.schemas[*]~
error
servers-https-only
Server URLs must use HTTPS.
$.servers[*].url
info
query-params-casing
Query parameters should be snake_case (the dominant convention in this API).
$.paths[*][get,post,put,patch,delete].parameters[?(@.in=='query')]
warn
schema-names-casing
Component schema names should be PascalCase (the dominant convention in this API).
$.components.schemas
info
schema-properties-casing
Schema properties should be snake_case (the dominant convention in this API).
$.components.schemas[*].properties
warn
security-schemes-defined
Security schemes should be defined in components.
$.components
warn
no-empty-descriptions
Descriptions must not be empty strings.
$..description
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/s-and-p-global-spectral-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.