Closed psmskelton closed 1 year ago
Currently, debugging missing required fields is a blind and labourious process, especially on complex and/or nested messages.
While still using required fields (noting they have been removed in Protobuf 3), the call to IsInitialized() (e.g., https://github.com/GobySoft/dccl/blob/4.0/src/codec.cpp#L206) should call FindInitializationErrors() upon failure.
required
IsInitialized()
FindInitializationErrors()
Patch to be submitted soon.
Please put a PR for this suggested fix and I'll be happy to review it.
Apologies, completely forgot with holidays. Will find what I implemented and submit a PR this week.
Currently, debugging missing required fields is a blind and labourious process, especially on complex and/or nested messages.
While still using
required
fields (noting they have been removed in Protobuf 3), the call toIsInitialized()
(e.g., https://github.com/GobySoft/dccl/blob/4.0/src/codec.cpp#L206) should callFindInitializationErrors()
upon failure.Patch to be submitted soon.