go-ozzo / ozzo-validation

An idiomatic Go (golang) validation package. Supports configurable and extensible validation rules (validators) using normal language constructs instead of error-prone struct tags.
MIT License
3.78k stars 224 forks source link

How do I validate a proto3 "oneOf" field with ozzo? #56

Closed tamanjoku closed 4 years ago

tamanjoku commented 6 years ago

I have a oneOff field, and I want to validate that the value is present?

qiangxue commented 5 years ago

Can you formalize the problem in golang?