Validating Zero Enum Value in the Protocol Bufferby@olvrng
1,828 reads

Validating Zero Enum Value in the Protocol Buffer

tldt arrow
Read on Terminal Reader🖨️
JS🚫

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

@olvrng

Oliver Nguyen

About @olvrng
LEARN MORE ABOUT @OLVRNG'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart
Oliver Nguyen HackerNoon profile picture
by Oliver Nguyen @olvrng.I’m a software maker working mostly in Go and JavaScript. Share knowledge and thoughts during my journey.
Read more on my blog

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa