mirror of
https://github.com/open-webui/mcpo.git
synced 2026-07-24 21:25:53 -04:00
[PR #174] [MERGED] fix: return to break loop of $ref in schema, avoid some case of Custo… #184
Reference in New Issue
Block a user
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/174
Author: @bipedalBit
Created: 6/6/2025
Status: ✅ Merged
Merged: 6/8/2025
Merged by: @tjbck
Base:
dev← Head:fix-circular-schema-ref-exception📝 Commits (1)
41fa151fix: return to break loop of $ref in schema, avoid some case of Custom-field-not-found exception.📊 Changes
3 files changed (+28 additions, -0 deletions)
View changed files
➕
src/mcpo/tests/__init__.py(+0 -0)📝
src/mcpo/tests/test_main.py(+15 -0)📝
src/mcpo/utils/main.py(+13 -0)📄 Description
…m-field-not-found exception.
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
return Any, Field(default=None, description="")in these cases to avoid exception.Changed
return Any, Field(default=None, description="")in function _process_schema_property() when schema of tool has a $ref points to its parant node.Fixed
Additional Information
Bug Scene
Schema from mcp-server-chart for example:
Testing
pytestin the project to check.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.