Skip to content

Commit 2165f11

Browse files
authored
Merge pull request #96 from Teamwork/log-empty-tags
Log empty tags
2 parents 6b34e3b + ea631f2 commit 2165f11

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)