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
View Rules File View on GitHub

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[*]

Spectral Ruleset

Raw ↑
extends: spectral:oas
rules:
  spring-boot-actuator-operationid-required:
    description: All Spring Boot Actuator operations must have an operationId.
    message: "OperationId is required for every actuator endpoint operation."
    severity: error
    given: "$.paths[*][get,post,put,delete,patch]"
    then:
      field: operationId
      function: truthy

  spring-boot-actuator-operationid-camelcase:
    description: OperationIds must use camelCase to match Spring Boot conventions.
    message: "OperationId '{{value}}' must use camelCase."
    severity: warn
    given: "$.paths[*][get,post,put,delete,patch].operationId"
    then:
      function: pattern
      functionOptions:
        match: "^[a-z][a-zA-Z0-9]*$"

  spring-boot-actuator-tags-required:
    description: All operations must have at least one tag for API grouping.
    message: "Operation must have at least one tag."
    severity: error
    given: "$.paths[*][get,post,put,delete,patch]"
    then:
      field: tags
      function: truthy

  spring-boot-actuator-response-200-on-get:
    description: All GET operations must define a 200 response.
    message: "GET operation must define a 200 OK response."
    severity: error
    given: "$.paths[*].get.responses"
    then:
      field: "200"
      function: truthy

  spring-boot-actuator-schema-description:
    description: All named schemas should have a description.
    message: "Schema '{{property}}' is missing a description."
    severity: warn
    given: "$.components.schemas[*]"
    then:
      field: description
      function: truthy

  spring-boot-actuator-health-status-enum:
    description: Health status fields should use Spring Boot's standard status values.
    message: "Health status should be UP, DOWN, OUT_OF_SERVICE, or UNKNOWN."
    severity: info
    given: "$.components.schemas[*].properties.status"
    then:
      field: enum
      function: truthy

  spring-boot-actuator-post-request-body:
    description: POST operations that mutate state should define a request body.
    message: "POST operation should define a requestBody for mutation operations."
    severity: warn
    given: "$.paths[*].post"
    then:
      field: requestBody
      function: truthy

  spring-boot-actuator-parameter-description:
    description: All path and query parameters must have descriptions.
    message: "Parameter '{{value}}' is missing a description."
    severity: warn
    given: "$.paths[*][*].parameters[*]"
    then:
      field: description
      function: truthy

Work with this as data

Every ruleset here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for spectral rules

4 MCP tools reach this
  • find_rulesBrowse and filter every ruleset in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/spring-boot-3-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.