Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

Conversation

@Lhcfl
Copy link
Contributor

@Lhcfl Lhcfl commented Jul 4, 2025

only: nil will cause ArraySerializer to overwrite the default Serializer settings, which will cause Topic, Post, etc. to be serialized as empty {}. We need to exclude the configuration without only.

The current test case only ensures that no error is raised, but does not guarantee the accuracy of the result, which indirectly introduces this bug. Additional tests are added to ensure consistent results.

`only: nil` will cause ArraySerializer to overwrite the default Serializer
settings, which will cause Topic, Post, etc. to be serialized as empty
`{}`. We need to exclude the configuration without only.

The current test case only ensures that no error is raised, but does not
guarantee the accuracy of the result, which indirectly introduces this
bug. Additional tests are added to ensure consistent results.
@tgxworld tgxworld merged commit 12a3fdc into discourse:main Jul 7, 2025
6 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants