Repository navigation
Keep constraints on scalar schema references - #6041
Merged
zzstoatzz merged 2 commits intoNov 10, 2026
Merged
Conversation
This comment has been minimized.
This comment has been minimized.
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 10, 2026
zzstoatzz
added a commit
that referenced
this pull request
Nov 10, 2026
This reverts commit 1ffb3e6.
zzstoatzz
added a commit
that referenced
this pull request
Nov 10, 2026
* Revert "fix: preserve referenced schema definitions (#5588)" This reverts commit 5f1d152. * Revert "fix(server): rebuild tool argument errors instead of echoing pydantic's (#6107)" This reverts commit 8fba5f7. * Revert "Advertise the MCP Apps extension only when the server serves an app (#5062)" This reverts commit b89222b. * Revert "fix(tasks): retain results after tool removal (#5507)" This reverts commit 711575a. * Revert "fix(client): Prevent stale ClientGroup refreshes from replacing newer routes (#5543)" This reverts commit 365d5d2. * Revert "fix(prompts): honor field aliases when rendering prompts (#5836)" This reverts commit a450fd8. * Revert "Stop FastMCP callable caches from retaining dropped tools (#6147)" This reverts commit 713f247. * Revert "feat(auth): Add KeystoneTokenVerifier (#6264)" This reverts commit c33f3de. * Revert "fix(json-schema): keep x-unsupported-pattern when a format is set (#5731)" This reverts commit dc9849d. * Revert "Roll back the tool stamp when a tool registration is rejected (#5798)" This reverts commit d6566c5. * Revert "fix(server): validate cursors when pagination is disabled (#6045)" This reverts commit 4917bee. * Revert "Keep constraints on scalar schema references (#6041)" This reverts commit e5176c9.
zzstoatzz
added a commit
that referenced
this pull request
Nov 10, 2026
* fix: keep additionalProperties on object schemas without a type (#6127) Fixes #6124. Co-authored-by: Alperen Keleş <19610315+alpaylan@users.noreply.github.com> (cherry picked from commit 2a8f333) * Fix hydration of mutually recursive schema types (#6394) Fixes #6135. Supersedes #6137. Co-authored-by: wozhenbang2004 <113896798+wozhenbang2004@users.noreply.github.com> Co-authored-by: Alperen Keleş <19610315+alpaylan@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 0d7bb12) * Isolate filesystem component construction failures (#6210) Fixes #6209. (cherry picked from commit f911b58) * fix(config): apply tool transforms before tag filters on single servers (#6214) Fixes #6196. Co-authored-by: arjunprabhulal <11761445+arjunprabhulal@users.noreply.github.com> (cherry picked from commit 02c121c) * fix(tools): isolate mutable defaults in transformed tool calls (#6184) Fixes #6183. (cherry picked from commit b25a1c5) * fix(openapi): make resource templates for non-identifier path parameters readable (#6187) Fixes #6150. Co-authored-by: alpaylan <19610315+alpaylan@users.noreply.github.com> (cherry picked from commit 63f5718) * Keep constraints on scalar schema references (#6041) Fixes #6042. (cherry picked from commit e5176c9) * Document that a custom httpx_client_factory owns its timeout (#5923) Fixes #5922. (cherry picked from commit c9f64de) * Stop PingMiddleware erroring when the client has no back-channel (#5901) Fixes #5900. (cherry picked from commit 044a519) * Store sessionless client log levels on the connection (#5899) Fixes #5898. (cherry picked from commit c6e0c4d) * Register templated MCPMixin resources as resource templates (#5895) Fixes #5894. (cherry picked from commit 0c9f5f7) * Send the whole body when a body $ref with siblings cannot be flattened (#5893) Fixes #5892. (cherry picked from commit cad6074) * Pass the transport to the fastmcp-remote proxy so it forwards server-initiated requests (#5885) Fixes #5884. (cherry picked from commit 285dd4c) * fix(cli): forward path, stateless and log-level to SDK MCPServer servers (#5870) Fixes #5869. (cherry picked from commit 6dcec21) * fix(client): preserve a caller-provided OAuth httpx client factory when verify is set (#5849) Fixes #5848. (cherry picked from commit b7c6568) * fix(prompts): resolve postponed annotations when rendering (#5803) Fixes #5801. Co-authored-by: BlueX888 <140241684+BlueX888@users.noreply.github.com> (cherry picked from commit 3bf92a6) * Roll back the tool stamp when a tool registration is rejected (#5798) Fixes #5797. (cherry picked from commit d6566c5) * fix(openapi): hydrate data for wrapped non-object responses with validate_output=False (#5784) Fixes #5781. Co-authored-by: BlueX888 <140241684+BlueX888@users.noreply.github.com> (cherry picked from commit 6451faa) * Carry prompt argument titles through PromptArgument and proxies (#5749) Fixes #5748. (cherry picked from commit 288485c) * Relay the client's sampling result unchanged through proxies (#5747) Fixes #5746. (cherry picked from commit 19c349f) * fix(json-schema): keep x-unsupported-pattern when a format is set (#5731) Fixes #5729. (cherry picked from commit dc9849d) * fix(tasks): let async-generator tools run as background tasks (#5730) Fixes #5728. (cherry picked from commit c66e181) * Honor Code Mode search limits after BM25 ranking (#5715) Fixes #5712. Co-authored-by: BlueX888 <140241684+BlueX888@users.noreply.github.com> (cherry picked from commit ee71391) * Keep the client timeout from capping the HTTP read timeout (#5690) Fixes #5675. (cherry picked from commit bf95d12) * fix(auth): avoid rereading failed authorization forms (#5570) Fixes #5569. Co-authored-by: JordanAfolabiLaw <252951842+JordanAfolabiLaw@users.noreply.github.com> (cherry picked from commit e9f0443) * Fix unbounded Apps dev log retention (#5549) Fixes #5548. (cherry picked from commit 0a9a482) * Bound error-stat cardinality in ErrorHandlingMiddleware (#5537) Fixes #5536. (cherry picked from commit 089ff09) * fix(auth): preserve GitHub sessions across transient verification failures (#4881) Fixes #4854. Co-authored-by: benjohngf <7750978+benjohngf@users.noreply.github.com> (cherry picked from commit 3c6fbf7) * Expect the extended read timeout in the factory timeout test (#6395) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit d8c4edf) * fix(auth): keep revocation ownership separate from user identity (#6404) Fixes #5800. Builds on #5807. Co-authored-by: BlueX888 <140241684+BlueX888@users.noreply.github.com> Co-authored-by: Luck <232011771+67-luck@users.noreply.github.com> (cherry picked from commit cdec3a9) * Authenticate and pin the schema download in the OpenAPI performance test (#6177) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit a66dd71) * Resolve deferred defaults by alias and keep unverified GitHub scopes out of the cache Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit e064736) * Revert "Roll back the tool stamp when a tool registration is rejected (#5798)" This reverts commit 36a1264. * Revert "Keep constraints on scalar schema references (#6041)" This reverts commit 1ffb3e6. * Revert "fix(json-schema): keep x-unsupported-pattern when a format is set (#5731)" This reverts commit 9da9835. --------- Co-authored-by: zgy <101915083+bfs2021@users.noreply.github.com> Co-authored-by: Alperen Keleş <19610315+alpaylan@users.noreply.github.com> Co-authored-by: wozhenbang2004 <113896798+wozhenbang2004@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: ppy <285454460@qq.com> Co-authored-by: ayush <ayushkumarsaha32@gmail.com> Co-authored-by: arjunprabhulal <11761445+arjunprabhulal@users.noreply.github.com> Co-authored-by: Priyanshu Gupta <priyanshug26005@gmail.com> Co-authored-by: Shayan Ali <shayan.ali8799@gmail.com> Co-authored-by: Asem ahmed <94972604+asasemahmed@users.noreply.github.com> Co-authored-by: 哈基米 <140241684+BlueX888@users.noreply.github.com> Co-authored-by: Luck <2115759892@qq.com> Co-authored-by: Winoren <158550716+Winoren@users.noreply.github.com> Co-authored-by: nosmile99 <147114285+nosmile99@users.noreply.github.com> Co-authored-by: Aarnav Noble <98567595+AarnavNoble@users.noreply.github.com> Co-authored-by: 一片一片 <3037678834@qq.com> Co-authored-by: Junpei Zhang <1259636180@qq.com> Co-authored-by: JordanAfolabiLaw <252951842+JordanAfolabiLaw@users.noreply.github.com> Co-authored-by: mika <spacexstarship01@outlook.com> Co-authored-by: sui-ni2 <loxri127@gmail.com> Co-authored-by: benjohngf <7750978+benjohngf@users.noreply.github.com> Co-authored-by: Luck <232011771+67-luck@users.noreply.github.com>
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.
A scalar
$refcurrently loses restrictions written next to it. For example,{"$ref": "#/$defs/Text", "maxLength": 3}still accepts"long"whenTextis a string definition.Validate the local scalar constraints alongside the referenced type, keeping both sets of rules intact and leaving other uses of the definition unchanged. This also handles transitive scalar references and checks raw strings before date/URL conversion. Declared Draft 4 through 7 schemas keep their existing reference-only behavior; object and array reference handling is unchanged.
Regression coverage includes tighter and looser bounds, intersecting patterns and multiples, separate uses of a cached definition, and legacy drafts.
Fixes #6042