AWS Step Functions · API Governance Rules
AWS Step Functions API Rules
Spectral linting rules defining API design standards and conventions for AWS Step Functions.
16 Rules
error 4
warn 10
info 2
Rule Categories
error
no
operationid
query
schema
security
servers
sfn
Rules
warn
sfn-operation-summary
All operations must have a summary starting with "AWS Step Functions"
$.paths[*][get,post,put,delete,patch]
error
sfn-operation-id
All operations must have an operationId
$.paths[*][get,post,put,delete,patch]
error
sfn-info-title
Info object must have a title
$.info
error
sfn-info-version
Info object must have a version
$.info
error
sfn-response-description
All responses must have a description
$.paths[*][*].responses[*]
info
sfn-microcks-annotation
Operations should have x-microcks-operation annotation
$.paths[*][get,post,put,delete,patch]
warn
sfn-schema-type
Schema components should have a type
$.components.schemas[*]
warn
sfn-security-defined
API security schemes should be defined
$
warn
servers-https-only
Server URLs must use HTTPS.
$.servers[*].url
warn
query-params-casing
Query parameters should be camelCase (the dominant convention in this API).
$.paths[*][get,post,put,patch,delete].parameters[?(@.in=='query')]
warn
operationid-casing
Operation IDs should be PascalCase (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
info
schema-properties-casing
Schema properties should be camelCase (the dominant convention in this API).
$.components.schemas[*].properties
warn
security-schemes-defined
Security schemes should be defined in components.
$.components
warn
error-schema-defined
A shared error schema (SensitiveError) should be defined for error payloads.
$.components.schemas
warn
no-empty-descriptions
Descriptions must not be empty strings.
$..description