AmTrust Financial Services · API Governance Rules
AmTrust Financial Services API Rules
Spectral linting rules defining API design standards and conventions for AmTrust Financial Services.
17 Rules
error 7
warn 10
Rule Categories
error
info
no
operation
operationid
parameter
path
response
schema
security
servers
Rules
warn
info-title-amtrust
API title must include AmTrust Financial Services
$.info.title
error
info-description-required
Info must have a description
$.info
error
servers-https-only
All servers must use HTTPS
$.servers[*].url
error
operation-summary-required
All operations must have summaries
$.paths[*][get,post,put,patch,delete]
error
operation-operationid-required
All operations must have operationIds
$.paths[*][get,post,put,patch,delete]
error
operation-tags-required
All operations must have tags
$.paths[*][get,post,put,patch,delete]
warn
parameter-description-required
All parameters must have descriptions
$.paths[*][*].parameters[*]
error
response-success-required
All operations must have success responses
$.paths[*][get,post,put,patch,delete].responses
error
security-schemes-defined
Security schemes must be defined
$.components
warn
schema-properties-typed
Schema properties should have explicit types
$.components.schemas[*].properties[*]
warn
servers-expected-domain
Server URLs should be on the amtrustservices.com domain.
$.servers[*].url
warn
path-params-casing
Path parameters should be snake_case (the dominant convention in this API).
$.paths[*].parameters[?(@.in=='path')].name
warn
operationid-casing
Operation IDs should be camelCase (the dominant convention in this API).
$.paths[*][get,post,put,patch,delete].operationId
warn
schema-names-casing
Component schema names should be PascalCase (the dominant convention in this API).
$.components.schemas
warn
schema-properties-casing
Schema properties should be snake_case (the dominant convention in this API).
$.components.schemas[*].properties
warn
error-schema-defined
A shared error schema (ErrorResponse) should be defined for error payloads.
$.components.schemas
warn
no-empty-descriptions
Descriptions must not be empty strings.
$..description