go-playground / validator

:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
MIT License
16.64k stars 1.31k forks source link

Validation ignored if struct consists of keys that start with lowercase #1244

Closed sbp-bvanb closed 6 months ago

sbp-bvanb commented 6 months ago

Package version eg. v9, v10:

Issue, Question or Enhancement:

Code sample, to showcase or reproduce:

type someStruct struct {
  abc string `validate:"required"`
}
deankarn commented 6 months ago

Please read the documentation.

https://pkg.go.dev/github.com/go-playground/validator/v10#WithPrivateFieldValidation