Spring Boot 3 · API Governance Rules
Spring Boot 3 API Rules
Spectral linting rules defining API design standards and conventions for Spring Boot 3.
8 Rules
error 3
warn 4
info 1
Rule Categories
spring
Rules
error
spring-boot-actuator-operationid-required
All Spring Boot Actuator operations must have an operationId.
$.paths[*][get,post,put,delete,patch]
warn
spring-boot-actuator-operationid-camelcase
OperationIds must use camelCase to match Spring Boot conventions.
$.paths[*][get,post,put,delete,patch].operationId
error
spring-boot-actuator-tags-required
All operations must have at least one tag for API grouping.
$.paths[*][get,post,put,delete,patch]
error
spring-boot-actuator-response-200-on-get
All GET operations must define a 200 response.
$.paths[*].get.responses
warn
spring-boot-actuator-schema-description
All named schemas should have a description.
$.components.schemas[*]
info
spring-boot-actuator-health-status-enum
Health status fields should use Spring Boot's standard status values.
$.components.schemas[*].properties.status
warn
spring-boot-actuator-post-request-body
POST operations that mutate state should define a request body.
$.paths[*].post
warn
spring-boot-actuator-parameter-description
All path and query parameters must have descriptions.
$.paths[*][*].parameters[*]