News for hackers. Stuff that matters.
Re:Go JSON/v2 Package by ttymck on Saturday October 07, 2023 @01:12PM (#37803490)
validator has worked well for me, but it doesn't operate on files, rather it validates the structs after unmarshaling.

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

Re:Go JSON/v2 Package by sureglymop on Saturday October 07, 2023 @01:56PM (#37803959)
I am using validator now and it's okay. I did have to write some custom validators and it wasn't too well documented. Unfortunately it's a bit hard to generate the right error messages for the user to see exactly where the misconfiguration is.