Skip to content

Commit

Permalink
Merge pull request #96 from Teamwork/log-empty-tags
Browse files Browse the repository at this point in the history
Log empty tags
  • Loading branch information
cesartw authored Aug 21, 2024
2 parents 6b34e3b + ea631f2 commit 2165f11
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 2165f11

Please sign in to comment.