How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Oneofs are a disaster. Protovalidate has fixed them.

calendar_today June 13, 2025 domain buf

Instead of using oneofs, you can now use the new (buf.validate.message).oneof Protovalidate annotation. As long as you’re validating your messages with Protovalidate, (buf.validate.message).oneof does exactly what you’d expect, with none of the pain.

open_in_new Read original post