Skip to content

[v26.1.x] [CORE-16282] json: make the schema walk keyword-aware - #30922

Merged
mnajda-redpanda merged 1 commit into
redpanda-data:v26.1.xfrom
vbotbuildovich:backport-pr-30865-v26.1.x-935
Jun 25, 2026
Merged

[v26.1.x] [CORE-16282] json: make the schema walk keyword-aware#30922
mnajda-redpanda merged 1 commit into
redpanda-data:v26.1.xfrom
vbotbuildovich:backport-pr-30865-v26.1.x-935

Conversation

@vbotbuildovich

Copy link
Copy Markdown
Collaborator

Backport of PR #30865

The bundled-schema walk descended into every nested object, so a key
matching a schema keyword (e.g. a property named "id" under draft-04,
or "$id"/"$ref" elsewhere) was misread as that keyword and the schema
was rejected.

Classify keywords by where subschemas appear and only descend into
genuine subschema positions, gated by dialect, so keys under
"properties", "$defs", etc. are treated as names.

(cherry picked from commit 4ea8f6e)
@vbotbuildovich vbotbuildovich added this to the v26.1.x-next milestone Jun 25, 2026
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Jun 25, 2026
@mnajda-redpanda
mnajda-redpanda merged commit 62fc1bb into redpanda-data:v26.1.x Jun 25, 2026
18 checks passed
@tyson-redpanda tyson-redpanda modified the milestones: v26.1.x-next, v26.1.14 Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/redpanda kind/backport PRs targeting a stable branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants