We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
if I have the following case class:
case class Foo(a: String, b: Option[Int])
If i read a message pack encoded byte array which is equivalent to the following json (not encoded with msgpack4z):
{ "a": "test" }
I get a unpack error. Since the case class map codec looks for the presence of each key and fails if any key is not present.
It seems that the optionCodec expects the message pack encoded data to include the key regardless of whether there is a value for it or not.
Aside from writing my own case class codec, is there a way to handle unpacking such types?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
if I have the following case class:
If i read a message pack encoded byte array which is equivalent to the following json (not encoded with msgpack4z):
I get a unpack error. Since the case class map codec looks for the presence of each key and fails if any key is not present.
It seems that the optionCodec expects the message pack encoded data to include the key regardless of whether there is a value for it or not.
Aside from writing my own case class codec, is there a way to handle unpacking such types?
The text was updated successfully, but these errors were encountered: