Spring Batch 5.1 · API Governance Rules
Spring Batch 5.1 API Rules
Spectral linting rules defining API design standards and conventions for Spring Batch 5.1.
8 Rules
error 3
warn 4
info 1
Rule Categories
spring
Rules
warn
spring-batch-actuator-path-prefix
All Spring Batch Actuator paths must be prefixed with /actuator or reflect the configured management base path.
$.paths[*]~
error
spring-batch-operation-tags-required
All operations must have at least one tag for grouping in the Batch Actuator API.
$.paths[*][get,post,put,delete,patch]
error
spring-batch-operationid-required
All operations in the Spring Batch Actuator API must have an operationId.
$.paths[*][get,post,put,delete,patch]
warn
spring-batch-operationid-camelcase
OperationIds must use camelCase to match Spring Batch conventions.
$.paths[*][get,post,put,delete,patch].operationId
error
spring-batch-response-200-required
All GET operations must define a 200 response.
$.paths[*].get.responses
warn
spring-batch-schema-description
All named schemas should have a description to support batch domain documentation.
$.components.schemas[*]
info
spring-batch-status-enum
Batch status fields should use the standard Spring Batch status enum values.
$.components.schemas[*].properties.status
warn
spring-batch-pagination-consistency
Paginated responses should include page, size, totalElements, and totalPages.
$.components.schemas[?(@.description =~ /[Pp]aginated/)]