Decode v0.3 Data
In Packet03Transition, Data in v0.3 format makes MetaInfo and Content optional.
This issue is to change
ndn::Data class so that the decoder can accept a Data with omitted MetaInfo and Content. Validators shall also accept such packets.
The encoder shall continue to emit empty MetaInfo and Content elements, so that the packets are compatible with both formats.
Updated by Junxiao Shi about 2 years ago
Validators shall also accept a Data with omitted MetaInfo and Content.
I'm confident this would work (just omitting MetaInfo and Content), but I won't add a test case for now.
Test case for this and other possible v0.3 encoding (injecting unrecognized non-critical elements) would come in #4583.