Java & Spring Boot (springdoc-openapi) Breaking-Change CI Gate for GitHub Actions & SARIF

Changing a Java Record field, @RequestParam requirement, or Jackson enum in Spring Boot 3 silently breaks downstream mobile and partner integrations. Export springdoc-openapi in CI and enforce SemVer + SARIF v2.1.0.

⚡ 1-Click Live Diagnostic • Zero Login • <1.5s Edge Execution

Run a Live Deterministic Check Right Now

Scan real corporate DNS via Cloudflare DoH, simulate a broken AI-agent OpenAPI PR, or audit WCAG 2.2 / EN 301 549 clauses instantly.

Test what happens when an AI coding agent makes an optional query parameter required and drops a response field without bumping MAJOR:

Optional: Paste or customize OpenAPI 3.x Base & Head JSON
Click Simulate Claude Code / Cursor Breaking PR to run POST /api/v1/diff live and inspect OAS-BREAK-* rules, SemVer MAJOR bump, and SOC 2 PR gating.

Zero-Database springdoc-openapi Export & Deterministic CI Gate for Spring Boot 3

In Java and Kotlin microservices, renaming a record component, changing @JsonProperty, tightening @NotNull / @RequestParam(required = true), or removing an enum constant compiles cleanly and passes unit tests—while silently breaking mobile apps and partner integrations. Try our Zero-Click Live OpenAPI Auto-Demo or connect our Free Zero-Login Remote MCP Server (/mcp).

Step 1 — Export /v3/api-docs via Sliced JUnit 5 Test (Zero Postgres/Kafka Needed)

@SpringBootTest(properties = "spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration")
@AutoConfigureMockMvc
class OpenApiContractExportTest {
    @Autowired
    private MockMvc mockMvc;

    @Test
    void exportOpenApiJson() throws Exception {
        String json = mockMvc.perform(get("/v3/api-docs"))
            .andExpect(status().isOk())
            .andReturn().getResponse().getContentAsString();
        Files.writeString(Path.of("target/openapi-head.json"), json);
    }
}

Step 2 — Enforce SpecGate v1.2.0 + GitHub Code Scanning SARIF in GitHub Actions

name: Spring Boot OpenAPI Contract Gate
on: [pull_request]
permissions:
  contents: read
  security-events: write

jobs:
  openapi-contract-gate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - uses: actions/setup-java@v4
        with:
          distribution: "temurin"
          java-version: "21"
          cache: "maven"

      - name: Export HEAD & BASE springdoc-openapi JSON
        run: |
          ./mvnw -q -Dtest=OpenApiContractExportTest test
          cp target/openapi-head.json head-openapi.json
          git worktree add /tmp/base-jvm origin/${{ github.base_ref }}
          (cd /tmp/base-jvm && ./mvnw -q -Dtest=OpenApiContractExportTest test)
          cp /tmp/base-jvm/target/openapi-head.json base-openapi.json

      - name: Run SpecGate v1.2.0 & Export OASIS SARIF v2.1.0
        run: |
          uvx --from git+https://github.com/profalexandrezamboni-ui/specgate-action@v1.2.0 \
            specgate-cli --base base-openapi.json --head head-openapi.json --format sarif > specgate.sarif

      - name: Upload SARIF Alerts to GitHub Security Tab
        if: always()
        uses: github/codeql-action/upload-sarif@v3
        with:
          sarif_file: specgate.sarif
10-Second Onboarding Builder • Zero Docker

Generate Your Drop-In CI/CD or .pre-commit Config in 10 Seconds

Select your CI stack, deterministic gates, and repository scale to generate ready-to-commit YAML.

2. Deterministic Gates to Enforce
.github/workflows/specgate.yml
name: SpecGate Deterministic CI Gates
on: [pull_request]
jobs:
  deterministic-gates:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: profalexandrezamboni-ui/specgate-action@v1.2.0
        env:
          SPECGATE_API_KEY: ${{ secrets.SPECGATE_API_KEY }}
        with:
          base_spec: openapi/base.json
          head_spec: openapi/head.json
      - run: pipx run --spec git+https://github.com/profalexandrezamboni-ui/spfguard-cli@v1.2.0 spfguard-cli --domain example.com
Recommended for 3–15 Repositories: Starter Plan ($19/mo flat team rate) unlocks SPECGATE_API_KEY for up to 15 private/public repos, automated inline PR comments, and 1,000 checks/hr.

Transparent Pricing — Instant Activation via Paddle

Start free on up to 2 repositories or domains. Upgrade anytime for multi-repository governance, signed PR overrides, and compliance exports.

Free Open-Source

$0/mo
  • Up to 2 repositories / domains
  • Deterministic CLI & GitHub Action
  • Interactive Web Playground
  • 60 API requests/hour
Install from GitHub

Team & Compliance

$39/mo

Paddle Price ID: pri_01m72s8sgdake5vfj2ygs54x50

  • Unlimited repositories & domains
  • Auditable PR Sign-Off override workflow
  • SOC 2 Audit Trail & EN 301 549 exports
  • 10,000 API requests/hour
Subscribe Team — $39/mo

14-Day Self-Serve Refund Guarantee: Payments, sales tax, and VAT are handled by our Merchant of Record (Paddle). Cancel immediately or trigger an automated 14-day full refund anytime via POST /api/v1/support/ticket.

Frequently Asked Technical Questions

How do we export OpenAPI 3.x from Spring Boot 3 in CI without booting PostgreSQL, Kafka, or Redis?

Write a lightweight @WebMvcTest or sliced @SpringBootTest with MockMvc targeting /v3/api-docs (provided by springdoc-openapi-starter-webmvc-ui) and write the JSON response to target/openapi.json during mvn test, or run springdoc-openapi-maven-plugin against an H2/mock profile—zero external containers needed.

Why run SpecGate v1.2.0 instead of Java openapi-diff in Maven/Gradle pipelines?

SpecGate executes in <0.5s with zero Maven plugin dependency conflicts, computes exact MAJOR/MINOR/PATCH SemVer bumps, exports OASIS SARIF v2.1.0 directly to GitHub Code Scanning, and provides auditable SOC 2 CC8.1 Pull Request sign-offs when breaking changes are intentional.