mirror of
https://github.com/open-webui/mcpo.git
synced 2026-11-05 01:27:39 +00:00
[PR #279] [CLOSED] fix: handle $ref to properties in schema processing #235
Labels
No labels
bug
can't reproduce
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/mcpo#235
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/mcpo/pull/279
Author: @majiayu000
Created: 1/5/2026
Status: ❌ Closed
Base:
dev← Head:fix/issue-117-ref-to-properties📝 Commits (1)
23c4d3cfix: handle $ref to properties in schema processing📊 Changes
2 files changed (+122 additions, -10 deletions)
View changed files
📝
src/mcpo/tests/test_main.py(+74 -0)📝
src/mcpo/utils/main.py(+48 -10)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
When MCP servers use intra-schema property references like
{"$ref": "#/properties/other_field"}, mcpo would crash withTypeError: argument of type 'NoneType' is not iterableorAssertionError: Custom field not found. This PR fixes the schema reference resolution to properly handle references to properties.Fixed
root_propertiesparameter to_process_schema_propertyto enable resolving#/properties/references$refreferences that point to sibling properties in the same schema#/$defs/and#/definitions/refs explicitly with proper error handlingAnytype instead of crashing$refresolution scenariosCloses #117
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.