feat(scaffold): x-altair-webhook round-trip activation (#189)#192
Merged
Conversation
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
2ce0b9c to
2d47ecb
Compare
This was referenced Jun 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.