Scrapfly · API Governance Rules
Scrapfly API Rules
Spectral linting rules defining API design standards and conventions for Scrapfly.
9 Rules
error 3
warn 5
info 1
Rule Categories
scrapfly
Rules
error
scrapfly-api-key-query-param
All operations must include the API key query parameter
$.paths[*][get,post].parameters
error
scrapfly-url-param-required
Scrape endpoints must include the 'url' parameter
$.paths['/scrape'][get,post].parameters
error
scrapfly-operation-ids
All operations must have operationId
$.paths[*][*]
warn
scrapfly-tags-required
All operations must have at least one tag
$.paths[*][*]
info
scrapfly-response-credit-headers
Scrape responses should document credit consumption headers
$.paths['/scrape'].get.responses['200']
warn
scrapfly-boolean-default-values
Boolean parameters should have explicit default values
$.paths[*][*].parameters[?(@.schema.type === 'boolean')]
warn
scrapfly-error-responses
Operations should document error responses
$.paths[*][*].responses
warn
scrapfly-parameter-descriptions
Parameters should have descriptions
$.paths[*][*].parameters[*]
warn
scrapfly-camel-case-operation-ids
Operation IDs should use camelCase
$.paths[*][*].operationId