Spring Security · API Governance Rules
Spring Security API Rules
Spectral linting rules defining API design standards and conventions for Spring Security.
7 Rules
error 3
warn 3
info 1
Rule Categories
spring
Rules
error
spring-security-operation-id
All operations must have operationId
$.paths[*][get,post,put,patch,delete]
warn
spring-security-tags-required
All operations must have tags
$.paths[*][get,post,put,patch,delete]
warn
spring-security-summary-title-case
Summaries must use Title Case
$.paths[*][*].summary
warn
spring-security-oauth2-error-responses
OAuth2 token endpoints must define error response schemas
$.paths[/oauth2/token,/oauth2/introspect].post
error
spring-security-security-schemes
API should define security schemes
$.components
info
spring-security-bearer-format
Bearer auth scheme should specify bearerFormat
$.components.securitySchemes[*][?(@.scheme == 'bearer')]
error
spring-security-sensitive-endpoints-documented
Sensitive OAuth2 endpoints must have descriptions
$.paths[/oauth2/token,/oauth2/introspect,/oauth2/revoke,/oauth2/authorize][*]