Spring Framework · API Governance Rules
Spring Framework API Rules
Spectral linting rules defining API design standards and conventions for Spring Framework.
11 Rules
error 2
warn 8
info 1
Rule Categories
spring
Rules
info
spring-actuator-content-type
Spring Boot Actuator endpoints should support the vendor media type
$.paths['/health'][get].responses['200'].content
error
spring-operation-id-required
All operations must have an operationId
$.paths[*][*]
warn
spring-operation-id-camel-case
Operation IDs should use camelCase
$.paths[*][*].operationId
warn
spring-operation-summary-required
All operations must have a summary
$.paths[*][*]
warn
spring-operation-summary-title-case
Operation summaries should use Title Case
$.paths[*][*].summary
warn
spring-operation-description-required
All operations should have a description
$.paths[*][*]
warn
spring-operation-tags-required
All operations should have tags
$.paths[*][*]
warn
spring-tags-title-case
All tags must use Title Case
$.tags[*].name
warn
spring-security-scheme-defined
Spring APIs should define security schemes when authentication is used
$.components
error
spring-success-response-required
Operations must define at least one 2xx response
$.paths[*][*].responses
warn
spring-path-param-described
Path parameters should have descriptions
$.paths[*][*].parameters[?(@.in == 'path')]