chore: Update ToolHive API models#282
Conversation
Automated update of ToolHive API models from OpenAPI specification.
PR Review: ToolHive API Models UpdateSummaryAuto-generated update to Pydantic models from ToolHive's OpenAPI spec. The changes modernize type annotations and add new enums. Key Changes✅ Type Annotation Modernization: Replaced Optional[T] with T | None (PEP 604 style) - aligns with project preference for native Python types ✅ New Enums Added: MCPClient, WorkloadStatus, ProxyMode, TransportType improve type safety ✅ Field Aliases: Added camelCase aliases (e.g., eventTypes, logFile) for proper API serialization ✅ New Fields:
Potential Issues
Action Required: Search codebase for usage patterns like:
Recommendations
Test Command: uv run pytest -xvs to catch any runtime issues Verdict✅ Approve pending successful CI checks - but monitor for runtime errors related to enum conversions. |
Summary
This PR updates the ToolHive API models generated from the latest OpenAPI specification.
Changes
src/mcp_optimizer/toolhive/api_models/Notes
datamodel-codegenfrom ToolHive's OpenAPI endpoint🤖 Generated with GitHub Actions