Commits
Click on a commit to change the comparison rangefix: remove return type annotation from settings serializer to fix OpenAPI schema
The `@model_serializer(mode='wrap')` decorator with a return type annotation
(e.g., `-> Any`) causes Pydantic to generate an empty serialization schema.
This breaks OpenAPI schema generation in FastAPI 0.120+, which uses
serialization mode for response models.
Removing the return type annotation allows Pydantic to fall back to the
model schema, producing correct OpenAPI definitions for all settings types.
Also updated UI type references to use the non-suffixed schema types
(e.g., `HistoryResponse` instead of `HistoryResponse-Output`) since the
fix removes the need for separate Input/Output schema variants.
See: https://github.com/pydantic/pydantic/issues/8791
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>11 hours ago
by zzstoatzz