You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Generics and CollectionOf for a pagination response type. This is working perfectly, and everything is serialized without an issue.
For a particular use case, I decided to use https://tsed.io/docs/response-filter.html - this filter is to conditionally modify certain response objects. The response type is not changing in the modification - just some of the parameters are modified:
Describe the bug
I use
Generics
andCollectionOf
for a pagination response type. This is working perfectly, and everything is serialized without an issue.For a particular use case, I decided to use https://tsed.io/docs/response-filter.html - this filter is to conditionally modify certain response objects. The response type is not changing in the modification - just some of the parameters are modified:
Where
toResposne
object would modify some fields, and ultimately return anotherPage
:Without response filter, I get the following response:
With the response filter, I get:
Note how the
id
field is{"value": "..."}
vs being the actual value.Here is a repo you can run: https://github.com/ktalebian/tsed-bug
To Reproduce
Clone https://github.com/ktalebian/tsed-bug and run
Expected behavior
I expect both responses to be identical
Code snippets
No response
Repository URL example
https://github.com/ktalebian/tsed-bug
OS
macOs
Node version
Node v18
Library version
v7.53.0
Additional context
No response
The text was updated successfully, but these errors were encountered: