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

Fallback to field name for ignored JSON fields #114

Closed seriousben closed 4 years ago

seriousben commented 4 years ago

This change will make field names linking to an ignored JSON field fallback to the go field name.

Otherwise, we would see - in the generated error messages.

coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 99.333% when pulling 94eced4aac4800e406a107c00f4cc92e53dcf42c on seriousben:fix-ignored-json-field-names into d05fa9f50a60226d9fe9dbe3e17748d22735f19b on go-ozzo:master.

qiangxue commented 4 years ago

Thank you for your contribution!