S&P Global · API Governance Rules
S&P Global API Rules
Spectral linting rules defining API design standards and conventions for S&P Global.
8 Rules
error 1
warn 7
Rule Categories
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[*]~