paint-brush
Validating Zero Enum Value in the Protocol Bufferby@olvrng
4,240 reads
4,240 reads

Validating Zero Enum Value in the Protocol Buffer

by Oliver Nguyen4mMarch 1st, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

How to validate that an enum value field in Protobuf can not be empty? Turn out that is not supported directly by Protobuf! We need to look into how protojson is implemented.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Validating Zero Enum Value in the Protocol Buffer
Oliver Nguyen HackerNoon profile picture
Oliver Nguyen

Oliver Nguyen

@olvrng

I’m a software maker working mostly in Go and JavaScript. Share knowledge and thoughts during my journey.

About @olvrng
LEARN MORE ABOUT @OLVRNG'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Oliver Nguyen HackerNoon profile picture
Oliver Nguyen@olvrng
I’m a software maker working mostly in Go and JavaScript. Share knowledge and thoughts during my journey.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite