Skip to content

Fix consistency in core/spec.md examples - #745

Merged
duglin merged 2 commits into
xregistry:mainfrom
clemensv:corrections-20261002/consistency-core-spec-md
Oct 16, 2026
Merged

duglin merged 2 commits into
xregistry:mainfrom
clemensv:corrections-20261002/consistency-core-spec-md

Conversation

@clemensv

@clemensv clemensv commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Correct metadata URLs in the cross-reference examples and the root JSON
Pointer in the document-view table. State the existing root-pointer rule
explicitly in the Doc Flag section.

Corrections

Target and projected source self URLs

Add $details to the target Schema Resource's self and to the projected
source's self. The HTTP body serialization rule requires
this suffix for document-bearing Resources and Versions. The
Schema Resource model does not override hasdocument, whose
default is true. These examples return metadata, not
the schema document.

The projected source keeps its own path. The projection rules
require source identity and URLs; the patch does not substitute the target's
location.

Default Version URL

Add $details to the projected meta.defaultversionurl. Its
API-view constraints require the Version's metadata URL,
including $details for HTTP document-bearing Resources, and equality with
that Version's self. The Resource path and v1 identifier stay unchanged.

Dangling cross-reference self

Add $details to the source Schema Resource's self in the dangling-target
example. The dangling-reference rule removes unavailable target
attributes, but the source is still a document-bearing Resource. The
HTTP self rule depends on that Resource type, not on whether
the target document is accessible. No dangling-reference error or document
retrieval behavior is introduced.

Whole-document JSON Pointer

Change the last self value in the Doc Flag table from #/ to
#. The rule locates the entity within the returned response; in that row,
the response is the Resource itself. Under RFC 6901, #
identifies the whole document, whereas #/ selects an empty-named member.

Scope

Five non-normative example corrections and a sentence making the existing
root-pointer requirement explicit. The metadata-view, projection and JSON
Pointer semantics are unchanged.

Source proposals: #723, #677.

Spec and model links use the unchanged base revision so the governing
requirements can be compared with this patch.

Superseded corrections

This PR supersedes the corrections described above from:

Only those corrections are superseded. Other changes in the linked PRs
remain outside this PR's scope; the references do not close those PRs.

Copy of clemensv#5, with the same branch and commits.

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: xregistry#723 and xregistry#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>
@duglin duglin added the Easy label Oct 7, 2026
Comment thread core/spec.md Resolved
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Clemens Vasters <clemensv@microsoft.com>
@duglin
duglin marked this pull request as ready for review October 16, 2026 13:12
@duglin

duglin commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Approved on the 10/16 call

@duglin
duglin merged commit 95e6cc5 into xregistry:main Oct 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants