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.73k stars 224 forks source link

Implement RuleWithContext for collection-like rules #129

Open qiangxue opened 3 years ago

qiangxue commented 3 years ago

Collection-like rules, such as When, Each, should implement RuleWithContext so that the rules they contain can be used in a context-aware situation.