msgpack-cli icon indicating copy to clipboard operation
msgpack-cli copied to clipboard

Runtime MessagePackIgnore

Open ShrenikOne opened this issue 7 years ago • 3 comments

Hi, We have specific needs where using PropertyName we wanted to skip serialization of property in object. We cannot specify design time attribute as same object has been used and based on context we want to skip Property Value serialization to reduce payload. Any way to achieve these?

Thanks,

ShrenikOne avatar Jan 19 '18 17:01 ShrenikOne

Hi, I have created PR #280 , to support requirements without major changes and adding additional property in SerializationContext. Please review and let me know comments to fix them or provide suggestions.

These implementation, allows to serialize objects without design time define object's member needs to skip serialization. These is very helpful in case where applications which reuse existing code and APIs needs to transfer data between tiers, while API call uses shared objects, which have all property populated, while caller on that APIs not interested or required all values, but because of shared logic and objects, it serialized everything. and its not possible to mark object on designtime as based on API, object members populated values required while for other it may not.

ShrenikOne avatar Jan 31 '18 10:01 ShrenikOne

Sorry, I'm busy now, but I will read your PR and this issue in weekend. Thank you!

yfakariya avatar Jan 31 '18 14:01 yfakariya

Hi @yfakariya , As based on your code review comments, i have created new PR #282. Please review.

ShrenikOne avatar Feb 04 '18 16:02 ShrenikOne