Skip to content

Commit ea631f2

Browse files
committed
Log empty tags
1 parent 6b34e3b commit ea631f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docparse/jsonschema.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ func structToSchema(prog *Program, name, tagName string, ref Reference) (*Schema
6666
continue
6767
}
6868
if name == "" {
69+
fmt.Fprintf(os.Stderr, "empty `%s` tag for %s. tags value: %s\n", tagName, schema.Title, p.KindField.Tag.Value)
6970
name = p.Name
7071
}
7172

0 commit comments

Comments
 (0)