Skip to content

fix: support extension schema URI containers in path-less PATCH#207

Open
q-uint wants to merge 2 commits into
masterfrom
fix/patch-extension-map-204
Open

fix: support extension schema URI containers in path-less PATCH#207
q-uint wants to merge 2 commits into
masterfrom
fix/patch-extension-map-204

Conversation

@q-uint

@q-uint q-uint commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

A PATCH add/replace without a "path" whose value nests extension attributes under their schema URI (RFC 7643 Section 3.3, RFC 7644 Section 3.5.2) failed with "invalid uri prefix". validateEmptyPath ran the URI key through ParsePath, which strips the trailing segment and produces a URI that never matches a registered schema.

Detect keys that exactly match a known schema URI and validate their members against that schema instead.

Fixes #204

q-uint added 2 commits July 22, 2026 08:55
A PATCH add/replace without a "path" whose value nests extension
attributes under their schema URI (RFC 7643 Section 3.3, RFC 7644
Section 3.5.2) failed with "invalid uri prefix". validateEmptyPath
ran the URI key through ParsePath, which strips the trailing segment
and produces a URI that never matches a registered schema.

Detect keys that exactly match a known schema URI and validate their
members against that schema instead.
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.

Schema extension URIs inside patch operation fail validation

1 participant