Spring Boot · API Governance Rules
Spring Boot API Rules
Spectral linting rules defining API design standards and conventions for Spring Boot.
9 Rules
error 4
warn 5
Rule Categories
spring
Rules
warn
spring-boot-actuator-operation-id-prefix
Actuator operation IDs should be descriptive and use camelCase
$.paths[*][get,post,put,delete,patch].operationId
warn
spring-boot-actuator-summary-title-case
All operation summaries must use Title Case
$.paths[*][get,post,put,delete,patch].summary
error
spring-boot-actuator-tags-defined
All operations must have at least one tag
$.paths[*][get,post,put,delete,patch]
warn
spring-boot-actuator-tags-title-case
All tags must use Title Case
$.paths[*][get,post,put,delete,patch].tags[*]
error
spring-boot-actuator-response-200-defined
All GET operations must define a 200 response
$.paths[*].get
warn
spring-boot-actuator-path-lowercase-kebab
Actuator endpoint paths should use lowercase with hyphens
$.paths
error
spring-boot-actuator-no-trailing-slash
Paths must not end with a trailing slash
$.paths
warn
spring-boot-actuator-info-contact-defined
API info must include contact information
$.info
error
spring-boot-actuator-servers-defined
At least one server must be defined
$