Repository navigation
fix(spec): align examples and models with existing contracts - #723
Draft
marcschier wants to merge 26 commits into
Draft
marcschier wants to merge 26 commits into
marcschier wants to merge 26 commits into
Conversation
Apply approved bundle B across Core, HTTP, Primer, Message, Schema, Endpoint and CloudEvents. Regenerate Endpoint usage projections with the unchanged baseline generator. Retain only the four approved model/generator test modules and useful migration guidance. Keep mixed A/C hunks and decision-dependent policy changes out of this bundle. Signed-off-by: Marc Schier <marcschier@hotmail.com>
This was referenced Sep 15, 2026
marcschier
added a commit
to marcschier/xregistry-drafts
that referenced
this pull request
Sep 16, 2026
Retain the category e model-permitted claim admission policy, disabled/lenient versus strict checker behavior, and whole-operation rejection for actual failures. The two copied compatibility link/word corrections retain category a ownership in xregistry#722 until that prerequisite actually merges. Do not import xregistry#723 strict-validation diagnostic changes or either whole prerequisite branch. Source-PR: xregistry#682 Source-Head: 648f656 Source-Merge-Base: 9ecf8ea Source-Commit: 28fb72e Prerequisite-Owner: xregistry#722 (compatibility status link and copied word) Signed-off-by: Marc Schier <marcschier@hotmail.com>
marcschier
added a commit
to marcschier/xregistry-drafts
that referenced
this pull request
Sep 16, 2026
Retain category e typemap precedence over discretionary base64 and the proposed lossless string fallback without choosing a universal character encoding. The established string/json/binary, implicit-map, binary-flag and empty-document alignment retains category b ownership in xregistry#723. Keep that required overlap until its actual upstream merge; do not merge the whole prerequisite branch. The next source commit composes xregistry#707 decoded-null exception. Source-PR: xregistry#699 Source-Head: 9d29755 Source-Merge-Base: 9ecf8ea Source-Commit: 9668fa6 Prerequisite-Owner: xregistry#723 (established document representation alignment) Signed-off-by: Marc Schier <marcschier@hotmail.com>
marcschier
added a commit
to marcschier/xregistry-drafts
that referenced
this pull request
Sep 16, 2026
Port the cleaned net diff from xregistry#694 at 23520b4, relative to main 9ecf8ea. Keep the pure helper with its real Contoso sample caller and generated-artifact tests. Preserve security separation, placeholder handling and explicit listener-URL migration. The two sample address/security corrections remain prerequisite overlap owned by xregistry#723 (B), pending upstream merge. Signed-off-by: Marc Schier <marcschier@hotmail.com>
duglin
pushed a commit
that referenced
this pull request
Oct 9, 2026
The JSON string example omits quoting and required escapes and incorrectly covers all non-printable characters. The existing rule requires the metadata format's default string serialization, including JSON control-character escapes for U+0000 through U+001F. Source: #723. Category: consistency. Scope: the example in core/model.md; no serialization rule changes. Signed-off-by: Clemens Vasters <clemensv@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
duglin
pushed a commit
that referenced
this pull request
Oct 9, 2026
The parent-creation rule rejects required attributes even when the server or defaults can supply their values. The import requirement is unconditional, including within one Group type. Existing model rules allow server-populated and default values and define imports between different Group types. Source: #723. Category: normative. Scope: these two conditions in core/spec.md; no new creation policy or import feature. Signed-off-by: Clemens Vasters <clemensv@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
duglin
pushed a commit
that referenced
this pull request
Oct 9, 2026
The sticky default example gives root Version v1 an ancestorid of v0. The existing rule requires a root Version's ancestorid to equal its own versionid. Source: #723. Category: consistency. Scope: one ancestorid value in core/resource.md; no Version ordering or default-selection changes. Signed-off-by: Clemens Vasters <clemensv@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
duglin
pushed a commit
that referenced
this pull request
Oct 9, 2026
Metadata examples omit $details, and the Group-creation exchange has an incorrect status and inconsistent URL schemes. Existing HTTP rules select metadata with $details and require 201 Created with Location equal to self for a new entity. Source: #723. Category: consistency. Scope: the HTTP examples in core/events.md; no event policy changes or new preconditions. Signed-off-by: Clemens Vasters <clemensv@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Apply the requested Endpoint, Message and Schema wording changes and reverts. Add admission regressions to the existing schema-generator test module rather than restoring removed test files. Close the wildcard-definition bypass: validate its enum and strict aspects and recurse through item and nested attributes, retaining valid scalar enums and inert strict flags. The focused admission matrix passes 913 cases and the tools suite passes 980. Signed-off-by: Marc Schier <marcschier@hotmail.com>
Use the now-accepted upstream wording for overlapping implicit-parent, Resource-type import and JSON string escaping corrections. Preserve the latest review-directed reverts, the remaining example corrections and the malformed-model admission regressions. The 913 focused schema cases remain covered within the passing 980-test tools suite. Signed-off-by: Marc Schier <marcschier@hotmail.com>
duglin
pushed a commit
that referenced
this pull request
Oct 14, 2026
CloudEvents context attributes appear in the wrong location, and a borrowed Message uses an unmodeled uri member. MQTT field names also differ from the model. Existing models use direct envelopemetadata members and the defined MQTT names. The Core cross-reference rule uses meta.xref with the source Resource ID. Sources: #685 and #723. Category: consistency. Scope: nine corrections in message/spec.md; no new declaration, binding or serialization rules. Signed-off-by: Clemens Vasters <clemensv@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
duglin
pushed a commit
that referenced
this pull request
Oct 14, 2026
The inline Message example adds an unmodeled attributes wrapper. The existing Message model places CloudEvents context-attribute declarations directly in envelopemetadata. Sources: #685 and #723. Category: consistency. Scope: the wrapper in endpoint/spec.md; no selector, declaration-value or envelope-rule changes. Signed-off-by: Clemens Vasters <clemensv@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
duglin
pushed a commit
that referenced
this pull request
Oct 14, 2026
Schema Group descriptions claim there is no format attribute or restriction. The existing model defines optional format and constrains contained schemas to its value when set. Source: #723. Category: normative. Scope: three descriptions in schema/spec.md; no new format policy. Signed-off-by: Clemens Vasters <clemensv@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
duglin
pushed a commit
that referenced
this pull request
Oct 14, 2026
ItemDefinition rejects enum and strict, while the schema permits enum on non-scalar definitions. Existing model rules define both item aspects and limit enum to scalar attribute and item types. Sources: #723 and #724. Category: consistency. Scope: these constraints in core/model.schema.json; no source/expanded model redesign or generated-artifact changes. Signed-off-by: Clemens Vasters <clemensv@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
duglin
pushed a commit
that referenced
this pull request
Oct 14, 2026
The HTTP examples and comments conflict with existing capability, collection, metadata and document rules. Core requires ID-keyed collections, Resource deletion checks under meta.epoch, and model-defined metadata. Metadata-only Message updates cannot include a separate document attribute. Native Content-Disposition uses a filename parameter; Version responses describe the requested Version. Sources: #689 and #723. Category: consistency. Scope: existing examples and annotations in core/http.md; exclude the Schema creation and Version-write example conversions. No new capabilities or header policy. Signed-off-by: Clemens Vasters <clemensv@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
duglin
pushed a commit
that referenced
this pull request
Oct 14, 2026
The Version template names the default Version and the Resource deletion template places epoch outside meta. Private encoding also applies to native fields, and Content-Disposition treats the Resource ID as the field value. Existing rules use the requested Version, meta.epoch and native HTTP field syntax, including the filename parameter. Sources: #689 and #723. Category: normative. Scope: these rules and response templates in core/http.md; no new header codec or disposition policy. Signed-off-by: Clemens Vasters <clemensv@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
duglin
pushed a commit
that referenced
this pull request
Oct 14, 2026
The serialization notation marks format as optional. The existing Schema model requires it. Source: #723. Category: consistency. Scope: one optional marker in schema/spec.md; no client default-processing or format-admission changes. Signed-off-by: Clemens Vasters <clemensv@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
duglin
pushed a commit
that referenced
this pull request
Oct 16, 2026
The usage model omits requiredness, and its description permits combinations beyond the existing rule. The Endpoint specification requires usage and a single role, except that subscriber and consumer may be combined for AMQP/1.0, MQTT/3.1.1, MQTT/5.0, or NATS. Source: #723. Category: consistency. Scope: requiredness and the description in endpoint/model.json; no new role or validation policy. Signed-off-by: Clemens Vasters <clemensv@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
duglin
pushed a commit
that referenced
this pull request
Oct 16, 2026
Resource self and defaultversionurl examples omit the metadata suffix, and the root JSON Pointer example uses a slash. Existing rules require metadata URLs and a pointer to the entity within the returned document; the root pointer is empty. Sources: #723 and #677. Category: consistency. Scope: five example values in core/spec.md; no URL or document-view policy changes. Signed-off-by: Clemens Vasters <clemensv@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Adopt the accepted upstream role description, enum placement conditions, schema wording and header corrections. Keep the reviewer-directed schemas-based HTTP examples and wildcard schema admission fix with its 913 regression cases. Update the three retained schema document examples to the newly required Content-Disposition filename syntax. Regenerate all Endpoint/CloudEvents derived conflicts from source, preserving item enums. All 16 outputs reproduce and 980 tools tests pass. Signed-off-by: Marc Schier <marcschier@hotmail.com>
Incorporate the accepted pagination_noncollection error from upstream without changing this PR's proposals. Signed-off-by: Marc Schier <marcschier@hotmail.com>
Merge the accepted basemessage name and Endpoint messagegroups target from upstream while preserving prior review resolutions and wildcard validation.16 artifacts reproduce and980 existing tools checks pass. Signed-off-by: Marc Schier <marcschier@hotmail.com>
Signed-off-by: Marc Schier <marcschier@hotmail.com> # Conflicts: # cloudevents/schemas/document-schema.avsc # cloudevents/spec.md # endpoint/schemas/document-schema.avsc # tools/schema-generator.py
Signed-off-by: Marc Schier <marcschier@hotmail.com>
Signed-off-by: Marc Schier <marcschier@hotmail.com> # Conflicts: # core/events.md
Signed-off-by: Marc Schier <marcschier@hotmail.com> # Conflicts: # core/http.md # schema/spec.md
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.
Proposed changes
Reconcile examples, descriptions, the Endpoint model and generated artifacts where existing Core/domain requirements already determine the answer. Retain Resource/Meta/Version and HTTP example corrections, model diagnostics, format/envelope/MQTT fixes, the Contoso Kafka sample and the required Endpoint usage declaration. No unrelated policy proposal is adopted.
Current-main reconciliation
Merged upstream main
8e8c6e0f12570efcc69782c8e9e672bc50ae727fin319eb30.bad_inlinefollows merge non-inlineable error into bad_inline #731;inline_noninlineableis not restored.usagerequiredness and the existing domain-role rules remain distinct from schema membership.The item-aspect specification is now merged in Core, not an unmerged prerequisite in #677. This branch carries the necessary emitter/meta-schema support; broader tooling remains in #724. No other unmerged PR was merged into this branch.
Evidence and limitations
All 309 tool tests pass, including actual model/emitter and Avro codec checks. All sixteen outputs independently reproduce. Source checks and documentation checks pass. Nonempty arrays, uniqueness and protocol-specific role combinations remain domain requirements, not guarantees supplied by an item enum. No prose-string tests or synthetic server/state simulator were added.
The existing consolidated provenance remains the selected consistency work from #663-#675, #684, #691, #694-#695, #698-#699, #702, #704, #709-#712, #714, #717 and #720. The former #663 diagnostic split and #675 sticky-PATCH interpretation have been superseded as described above. Primer changes remain excluded.
Fixes #579 #581 #582 #584 #585 #598 #599 #602 #604 #611 #612 #626 #629 #634 #646
Refs #591, #596, #597, #603, #614, #615, #625, #636, #642.