Skip to content

fix(schema): decode URI fragments before pointer traversal - #5272

Merged
jbeckwith-oai merged 1 commit into
mainfrom
codex/fix-schema-uri-fragments
Oct 1, 2026
Merged

jbeckwith-oai merged 1 commit into
mainfrom
codex/fix-schema-uri-fragments

Conversation

@jbeckwith-oai

Copy link
Copy Markdown
Contributor

Summary

This pull request fixes percent-encoded local schema references during strict JSON Schema conversion. References such as #/$defs/A%20B now resolve to A B, preventing KeyError during FunctionTool construction and silent selection of a different literal-percent definition.

Decode the URI fragment once before JSON Pointer traversal, preserving literal plus signs, pointer escape ordering, and nested-resource rejection. Add public FunctionTool regression coverage with an independent JSON Schema validator.

Test plan

  • Before the fix, the new regression selection produced 10 failures and 2 passing controls.
  • After the fix, the function-tool and strict-schema suites passed: 167 tests.
  • Independent review of the complete diff found no actionable findings.
  • Final verification wrapper passed formatting, lint, Mypy, Pyright, and the complete parallel and serial test runs. Used UV_FROZEN=1 to preserve the existing lockfile; native macOS sandbox tests were skipped under the prescribed Codex sandbox flag and are covered by CI.

Issue number

Fixes #5254

Checks

  • I've added new tests, if relevant
  • I've run .agents/skills/code-change-verification/scripts/run.sh
  • I've confirmed all verification steps pass
  • I've completed an independent code review before submitting this PR

@jbeckwith-oai
jbeckwith-oai requested review from a team, rm-openai and seratch as code owners September 30, 2026 22:43
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-30T22:46:25.255992Z e93c146 PR opened
🔒 Security Review ✅ Completed 2026-09-30T22:47:29.065008Z e93c146 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@jbeckwith-oai
jbeckwith-oai added this pull request to the merge queue Oct 1, 2026
Merged via the queue into main with commit b64cad4 Oct 1, 2026
23 checks passed
@jbeckwith-oai
jbeckwith-oai deleted the codex/fix-schema-uri-fragments branch October 1, 2026 00:45
@openai-sdks openai-sdks Bot mentioned this pull request Sep 30, 2026
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.

fix(schema): decode URI fragments before JSON Pointer traversal

2 participants