Skip to content

Conversation

@linrong
Copy link
Contributor

@linrong linrong commented Nov 15, 2025

select_join_serialize 函数在只有一个元素时会返回单个字典对象而不是列表,PageData 模型定义中 items 字段要求是 Sequence[SchemaT] (序列类型,如列表),所以当只存在一个用户返回的时候会检验错误

@wu-clan wu-clan changed the title fix: 修复当前只有一个用户返回时返回内容格式错误 Fix the user list query serialization Nov 16, 2025
@wu-clan wu-clan self-requested a review November 16, 2025 08:03
Copy link
Member

@wu-clan wu-clan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Thanks @linrong

@wu-clan wu-clan merged commit 2c0acb1 into fastapi-practices:master Nov 16, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants