Axon Framework · API Governance Rules
Axon Framework API Rules
Spectral linting rules defining API design standards and conventions for Axon Framework.
11 Rules
error 3
warn 6
info 2
Rule Categories
axon
no
operationid
path
query
schema
Rules
warn
axon-operation-summary
All operations must have a summary starting with "Axon Framework"
$.paths[*][get,post,put,delete,patch]
error
axon-operation-id
All operations must have an operationId
$.paths[*][get,post,put,delete,patch]
error
axon-info-title
Info object must have a title
$.info
error
axon-response-description
All responses must have a description
$.paths[*][*].responses[*]
info
axon-microcks-annotation
Operations should have x-microcks-operation annotation
$.paths[*][get,post,put,delete,patch]
warn
path-params-casing
Path parameters should be camelCase (the dominant convention in this API).
$.paths[*].parameters[?(@.in=='path')].name
warn
query-params-casing
Query parameters should be snake_case (the dominant convention in this API).
$.paths[*][get,post,put,patch,delete].parameters[?(@.in=='query')]
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
info
schema-properties-casing
Schema properties should be camelCase (the dominant convention in this API).
$.components.schemas[*].properties
warn
no-empty-descriptions
Descriptions must not be empty strings.
$..description