omitifempty makes it unpossible to have valid result
mwiede opened this issue · 0 comments
mwiede commented
I was playing with json validation and found, that there is a problem with the omitifempty flag in the json field.
Please check my example at https://play.golang.org/p/54aCchWnusM
When I remove the omitifempty no validation violation is show.
What is the intened behavior here?