Repository navigation
fix(events): make sample HTTP exchanges consistent with the model - #704
Closed
marcschier wants to merge 2 commits into
Closed
marcschier wants to merge 2 commits into
marcschier wants to merge 2 commits into
Conversation
Signed-off-by: Marc Schier <marcschier@hotmail.com>
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>
This was referenced Sep 15, 2026
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 Closing only this fully superseded original. Separate d/e proposals remain open, and no source branch is deleted. |
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>
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.
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
$detailsremains 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 intools/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.