-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing _class causes failure when deserializing to ObjectRecord #2251
Comments
when |
Thanks for reporting! The Related to: #2198 |
Closing as duplicate of #2198 |
@christophstrobl I noticed that #2253 was merged to main branch and should also fix this issue. When |
@lrozek SNAPSHOT builds are available via repo.spring.io, |
@christophstrobl I did use Now with the latest version I can also confirm that #2253 resolved also this issue. I verified it in repro project with following change to What's it the schedule to have Thank you |
Glad it works for you now. Please find tentative dates in the release calendar. |
@christophstrobl thanks a lot |
@christophstrobl according to calendar |
StreamMessageListenerContainerOptions#targetType
https://github.com/lrozek/redis-stream-deserialization/blob/main/redis-stream-consumer/src/main/java/pl/lrozek/redis/stream/consumer/redis/configuration/RedisListenerConfiguration.java#L29
provides information regarding what class should be used for deserialization. Producing system should not be enforced to provide
_class pl.lrozek.redis.stream.consumer.domain.TemperatureReadingDto
field-value pair in a stream entry, as this is an implementation detail of a consuming system.When
_class
field-value pair is missing following exception is thrown:reproduction project and full description can be found at
https://github.com/lrozek/redis-stream-deserialization
The text was updated successfully, but these errors were encountered: