Skip to content

feat(scaffold): x-altair-webhook round-trip activation (#189)#192

Merged
tonydspaniard merged 1 commit into
masterfrom
feat/189-webhook-roundtrip
Jun 1, 2026
Merged

feat(scaffold): x-altair-webhook round-trip activation (#189)#192
tonydspaniard merged 1 commit into
masterfrom
feat/189-webhook-roundtrip

Conversation

@tonydspaniard
Copy link
Copy Markdown
Member

@tonydspaniard tonydspaniard commented May 31, 2026

No description provided.

Activate the x-altair-webhook OpenAPI extension end-to-end, mirroring the
x-altair-idempotency playbook (#175):

- Forward emit: OpenApiEmitter::renderWebhook() writes the extension when a
  spec carries a webhook block. direction + signing always travel; every
  other field is omitted when it equals its WebhookSpec default, keeping the
  block minimal and byte-stable across the round-trip gate.
- Reverse import: OperationMapper::webhookFromExtension() reconstructs the
  webhook: spec block, copying through only the non-default keys so the
  Parser re-applies the same defaults.
- Drift gate: OpenApiRoundtripRunner compares x-altair-webhook in both the
  projection and the per-extension drift loop. A dropped/changed block now
  fails openapi:roundtrip with kind extension_drift.
- Centralized WebhookSpec defaults into named constants so emit / parse /
  round-trip share one source of truth (no literal drift).
- Expanded docs/openapi/extensions/x-altair-webhook.schema.json from the
  reserved 4-field stub to the full round-tripping contract.
- Docs: extensions.md + roundtrip.md move webhook from "carried through" to
  "round-trips" and into the compared-set listing.

Tests: 7 new cases covering inbound + outbound emit, default omission,
reverse import, clean round-trip (both directions), and a real broken-emitter
proving the drift gate fires. Regenerated .agent scaffold manifest.

Closes #189
@tonydspaniard tonydspaniard force-pushed the feat/189-webhook-roundtrip branch from 2ce0b9c to 2d47ecb Compare June 1, 2026 07:36
@tonydspaniard tonydspaniard merged commit 5abb695 into master Jun 1, 2026
4 checks passed
@tonydspaniard tonydspaniard deleted the feat/189-webhook-roundtrip branch June 1, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant