Unexpected Fields Allowed in Decoded Object with Optional Schema Fields
Hey, I've noticed that making any of struct fields optionals like so:
or
Allows for unknown random fields to be defined in decoded object. Does anybody know if it's correct behaviour or how to avoid that?
I mean I expected such object to fail the decoding:
or
Allows for unknown random fields to be defined in decoded object. Does anybody know if it's correct behaviour or how to avoid that?
I mean I expected such object to fail the decoding:
