Skip to content

Commit

Permalink
Log empty tags
Browse files Browse the repository at this point in the history
  • Loading branch information
cesartw committed Aug 21, 2024
1 parent 6b34e3b commit ea631f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docparse/jsonschema.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func structToSchema(prog *Program, name, tagName string, ref Reference) (*Schema
continue
}
if name == "" {
fmt.Fprintf(os.Stderr, "empty `%s` tag for %s. tags value: %s\n", tagName, schema.Title, p.KindField.Tag.Value)
name = p.Name
}

Expand Down

0 comments on commit ea631f2

Please sign in to comment.