Add the [MessagePackFormatter]
attribute when MessagePack conversion is enabled
#705
Labels
enhancement
New feature or request
Describe the feature
MessagePack support was added in #701, now a MessagePack formatter is generated for every value object, which is great. But the formatters have to be manually registered right now since the value object isn't annotated with the
[MessagePackFormatter]
attribute (analogous to System.Text.Json's[JsonConverter]
attribute), which makes it so that the formatters are automatically picked up by the MessagePack serializer.Please consider simply adding a
[MessagePackFormatter(typeof(<FormatterType>))]
on top of the generated value objects when MessagePack conversion is enabled, like some of the other converters.The text was updated successfully, but these errors were encountered: