Skip to content

fix(events): make sample HTTP exchanges consistent with the model - #704

Closed
marcschier wants to merge 2 commits into
xregistry:mainfrom
marcschier:fix/spec-614-event-http-examples
Closed

marcschier wants to merge 2 commits into
xregistry:mainfrom
marcschier:fix/spec-614-event-http-examples

Conversation

@marcschier

@marcschier marcschier commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #614.

Behavior: Makes the event sample model explicitly metadata-only, so its three unsuffixed Resource/Version metadata PATCH examples are valid. The complete Group creation exchange now uses 201 and Location equal to self, one HTTPS base URL, explicit creation preconditions, and valid event JSON.

Compatibility: Example-only correction. Raw-document PATCH remains unsupported; metadata-only $details remains accepted with canonical response URLs. Existing Group updates remain 200 without Location. No allocation, event-name, xref, commit-policy or delivery changes are stacked.

Evidence: Parsed actual examples reproduced six failures before correction. Final focused captures: 18 passed. Full tools: 85 passed, four existing OpenAPI deprecation warnings. Tests exercise state changes and compare Group identity/status/Location, dates, correlation and event epochs; rejected document PATCH leaves state and events unchanged. Two actual Markdown documents / 21 links, spelling, tabs, LF and staged/committed diff checks passed.

Limits: Offline bounded HTTP/model/state captures in tools/test_events_exchange_614.py (notes in tools/spec614/), not a live server, full wire-framing implementation or event-delivery proof. Opened as a draft because three files changed; the later ready transition is preserved.

CI collection follow-up: The console pytest entrypoint does not add the repository root to its import path. The test now lives beside the existing sample helper rather than depending on that path. Both isolated module and console full-suite runs pass (85 tests each); hosted verify and DCO also passed on forward commit daf8a2a.

Signed-off-by: Marc Schier <marcschier@hotmail.com>
@marcschier
marcschier marked this pull request as ready for review September 15, 2026 12:43
The console pytest entrypoint does not add the repository root to its import path. Keep the issue-specific test beside the existing sample helper so both console and module entrypoints collect and execute it without path overrides.

Signed-off-by: Marc Schier <marcschier@hotmail.com>
@marcschier

Copy link
Copy Markdown
Contributor Author

Superseded by xregistry/spec#722 (bundle A), xregistry/spec#723 (bundle B). The selected substantive changes at reviewed head daf8a2a are mapped in those replacement descriptions, with this original discussion and issue provenance retained.

Specification-text assertions and synthetic policy-test Python were deliberately omitted; qualifying real-artifact checks were retained or pruned as documented. Unmodified baseline Python and historical source branches are preserved.

Verified immediately before closing: xregistry/spec#722 at 43e452e: verify and DCO both passed; xregistry/spec#723 at 1866531: verify and DCO both passed.

Closing only this fully superseded original. Separate d/e proposals remain open, and no source branch is deleted.

@marcschier marcschier closed this Sep 15, 2026
duglin pushed a commit that referenced this pull request Sep 23, 2026
* fix(docs): correct specification and example errors

Transfer only the approved category-a documentation hunks. Keep policy,
metadata-view, generated-artifact and tooling changes in their own bundles.
Preserve the existing sample-validation Python without importing prose tests.

Refs: #668, #669, #671,
#672, #674, #676,
#682, #693, #695,
#704, #705, #710,
#711, #717, #718.

Refs: #609. These residual serialization repairs complement,
but do not absorb or complete, the separately owned #657 work.

Signed-off-by: Marc Schier <marcschier@hotmail.com>

* docs(core): repair selected Resource example punctuation

Add the three missing member separators and remove the extra brace from the reviewed Patch Resource initial state.

Signed-off-by: Marc Schier <marcschier@hotmail.com>

* docs(cloudevents): drop the added sample-abbreviation sentences

Review feedback on #722 asked to remove both new sentences; the samples and their corrected literals are unchanged otherwise.

Signed-off-by: Marc Schier <marcschier@hotmail.com>

---------

Signed-off-by: Marc Schier <marcschier@hotmail.com>
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.

Make event example exchanges executable under their declared HTTP model

1 participant