State Farm Insurance Companies · API Governance Rules
State Farm Insurance Companies API Rules
Spectral linting rules defining API design standards and conventions for State Farm Insurance Companies.
15 Rules
error 9
warn 5
info 1
Rule Categories
state
Rules
error
state-farm-insurance-cos-info-contact-required
All State Farm Insurance Companies APIs must include contact information
$.info
error
state-farm-insurance-cos-operation-summary-title-case
Operation summaries must use Title Case per State Farm Insurance Companies API conventions
$.paths[*][get,post,put,patch,delete].summary
error
state-farm-insurance-cos-operation-id-camel-case
Operation IDs must use camelCase
$.paths[*][get,post,put,patch,delete].operationId
error
state-farm-insurance-cos-operation-tags-required
All operations must have tags
$.paths[*][get,post,put,patch,delete]
warn
state-farm-insurance-cos-operation-description-required
All operations must have a description
$.paths[*][get,post,put,patch,delete]
error
state-farm-insurance-cos-path-versioned
All API paths must start with a version prefix /v1
$.paths
error
state-farm-insurance-cos-path-kebab-case
Path segments must use kebab-case
$.paths
error
state-farm-insurance-cos-oauth2-security
All insurance APIs must use OAuth2 authentication
$.components.securitySchemes[*]
error
state-farm-insurance-cos-security-applied
Global security must be applied at the API level
$
warn
state-farm-insurance-cos-response-201-post
POST operations that create resources must return 201
$.paths[*].post.responses
warn
state-farm-insurance-cos-response-error-codes
Operations must define error response codes
$.paths[*][get,post,put,patch,delete].responses
warn
state-farm-insurance-cos-schema-description
All schema components must have descriptions
$.components.schemas[*]
warn
state-farm-insurance-cos-parameter-required-flag
All parameters must explicitly declare whether they are required
$.paths[*][get,post,put,patch,delete].parameters[*]
info
state-farm-insurance-cos-state-code-pattern
State code fields should validate US state abbreviations
$.components.schemas[*].properties.state
error
state-farm-insurance-cos-request-body-content-type
Request bodies must use application/json content type
$.paths[*][post,put,patch].requestBody.content