zig-protobuf icon indicating copy to clipboard operation
zig-protobuf copied to clipboard

Manage required fields through restrictions

Open Arwalk opened this issue 3 years ago • 0 comments

Can use a method check_validity(self: T) InvalidErrors!void { ... } to ensure the message adheres to restrictions and options before encoding and after decoding.

Can be a first step for required fields on proto2

Arwalk avatar Jun 05 '22 15:06 Arwalk