type Nested struct {
NoTagA string
}
type Foo struct {
Ignored Nested `json:"-"`
NoTagB string
}
Such a structure should report an error because NoTagB lacks the json tag. However, it currently does not, because the misplaced return instead of continue is made in the code, which skips the check of subsequent fields.
Such a structure should report an error because
NoTagB
lacks thejson
tag. However, it currently does not, because the misplacedreturn
instead ofcontinue
is made in the code, which skips the check of subsequent fields.