Skip to content

Commit

Permalink
add context to error message for comment tags
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzielenski committed May 21, 2024
1 parent 631461f commit 47d23e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/generators/openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ func (g openAPITypeWriter) generate(t *types.Type) error {
case types.Struct:
validationSchema, err := ParseCommentTags(t, t.CommentLines, markerPrefix)
if err != nil {
return err
return fmt.Errorf("failed parsing comment tags for %v: %w", t.String(), err)
}

hasV2Definition := hasOpenAPIDefinitionMethod(t)
Expand Down

0 comments on commit 47d23e8

Please sign in to comment.