StockData · API Governance Rules
StockData API Rules
Spectral linting rules defining API design standards and conventions for StockData.
8 Rules
error 3
warn 3
info 2
Rule Categories
stockdata
Rules
error
stockdata-api-token-required
All StockData API endpoints must require the api_token query parameter.
$.paths.*.*.parameters[?(@.name == 'api_token')]
warn
stockdata-operationid-camel-case
StockData operationIds must use camelCase to match the existing SDK conventions.
$.paths[*][*].operationId
warn
stockdata-tags-title-case
All tags on operations must use Title Case.
$.paths[*][*].tags[*]
error
stockdata-response-200-required
All StockData GET operations must define a 200 success response.
$.paths[*].get
info
stockdata-pagination-params
Collection endpoints returning lists should support page and limit query parameters for pagination.
$.paths[*].get[?(@.operationId =~ /^(get|list|search)/)]
warn
stockdata-no-empty-descriptions
All parameters must have non-empty descriptions.
$.paths[*][*].parameters[*]
info
stockdata-symbols-param-description
The symbols parameter must clearly state it accepts comma-separated ticker symbols.
$.paths[*][*].parameters[?(@.name == 'symbols')]
error
stockdata-server-v1-prefix
The StockData API server URL must include /v1 in the base path.
$.servers[*].url