doc/analyzers/MsgPack006.md
IMessagePackFormatterThis diganostic appears when the type passed to MesssagePackFormatterAttribute does not actually implement some IMessagePackFormatter<T>.
[MessagePackObject]
public class A {
[Key(0), MessagePackFormatter(typeof(CustomBFormatter))]
public B b;
}
public class CustomBFormatter {}
Change the attribute to point to a valid formatter, or update the referenced class to be a valid formatter. The following example takes the latter approach.
[MessagePackObject]
public class A {
[Key(0), MessagePackFormatter(typeof(CustomBFormatter))]
public B b;
}
public class CustomBFormatter : IMessagePackFormatter<B> {
void Serialize(ref MessagePackWriter writer, B value, MessagePackSerializerOptions options)
=> throw new NotImplementedException();
B Deserialize(ref MessagePackReader reader, MessagePackSerializerOptions options)
=> throw new NotImplementedException();
}