openapi-changelog

star 0

Diff rest-openapi.yaml against main and summarize REST API contract changes. Use before running buildREST (gate check for breaking changes) or after buildREST to document what changed for a PR description.

wsyski By wsyski schedule Updated 5/29/2026

name: openapi-changelog description: Diff rest-openapi.yaml against main and summarize REST API contract changes. Use before running buildREST (gate check for breaking changes) or after buildREST to document what changed for a PR description.


Steps

  1. Get the diff of rest-openapi.yaml against main:

    git diff main -- modules/headless-delivery-ext/headless-delivery-ext-impl/rest-openapi.yaml
    

    If there's no diff against main, check HEAD~1:

    git diff HEAD~1 -- modules/headless-delivery-ext/headless-delivery-ext-impl/rest-openapi.yaml
    
  2. Analyze the diff and produce a structured summary under these headings (omit any heading with no changes):

    Endpoints

    • Added: list new paths entries with HTTP method and summary
    • Removed: list deleted paths
    • Modified: list changed paths and describe what changed (parameter name, type, required flag, response schema)

    Schemas

    • Added: new components/schemas entries
    • Removed: deleted schemas
    • Modified: changed properties (type changes, added/removed fields, required changes)

    Breaking changes (flag explicitly):

    • Removed endpoints or schemas
    • Changed parameter types or names
    • Removed required fields that were previously required
  3. If the diff is empty, output: "No changes to rest-openapi.yaml relative to main."

  4. If breaking changes are present, prepend a GATE warning before the summary:

    ⚠ BREAKING CHANGES DETECTED — confirm with the user before running buildREST.
    Clients consuming these endpoints will need to be updated.
    

Keep the summary concise — one bullet per change, no YAML quoting. The goal is a human-readable changelog entry or pre-buildREST gate check, not a raw diff replay.

Install via CLI
npx skills add https://github.com/wsyski/blade-workspace --skill openapi-changelog
Repository Details
star Stars 0
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator