NestJS, TypeScript & Zod OpenAPI Breaking-Change Gate for GitHub Actions & SARIF

One renamed TypeScript DTO property or tightened z.object() validator silently breaks mobile and SDK consumers. Generate OpenAPI 3.x from @nestjs/swagger or zod-to-openapi in CI and block breaking PRs in <0.5s.

⚡ 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.

Drop-In GitHub Actions Gate for NestJS (@nestjs/swagger) & TypeScript (zod-to-openapi)

TypeScript monorepos move fast—especially when AI coding agents refactor shared DTOs or z.object() schemas. Test a live contract diff right now with our Zero-Click OpenAPI Breaking-Change Demo, then add this workflow to block unannounced breaking API mutations and publish native SARIF v2.1.0 alerts:

name: TypeScript / NestJS OpenAPI Contract Gate
on: [pull_request]

permissions:
  contents: read
  security-events: write

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

      - uses: actions/setup-node@v4
        with:
          node-version: "20"

      - name: Export HEAD & BASE OpenAPI JSON (@nestjs/swagger or zod-to-openapi)
        run: |
          npm ci
          npx tsx scripts/export-openapi.ts > head-openapi.json
          git worktree add /tmp/base-ts origin/${{ github.base_ref }}
          (cd /tmp/base-ts && npm ci && npx tsx scripts/export-openapi.ts) > base-openapi.json

      - name: Run SpecGate v1.2.0 & Export 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 to GitHub Code Scanning
        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

Can I export @nestjs/swagger or zod-to-openapi schemas in GitHub Actions without booting PostgreSQL or Redis?

Yes. Using NestFactory.create(AppModule, { logger: false }) with mocked providers—or calling OpenApiGeneratorV3(registry.definitions).generateDocument(...) in zod-to-openapi—writes openapi.json to disk in under 1 second without binding a network socket.

Does SpecGate catch breaking TypeScript DTO and Zod schema changes as SARIF v2.1.0 alerts?

Yes. 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 > results.sarif and upload directly to GitHub Security -> Code Scanning.