Skip to content

Commit

Permalink
Update writer/openapi/utils.go
Browse files Browse the repository at this point in the history
Co-authored-by: Yusuke Tsutsumi <[email protected]>
  • Loading branch information
rambleraptor and toumorokoshi authored Sep 18, 2024
1 parent 96b949e commit fb04eaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion writer/openapi/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func openAPIType(p *schema.Property) (TypeInfo, error) {
case *schema.Property_Type:
return openAPITypePrimitive(p.GetType())
default:
return TypeInfo{}, fmt.Errorf("reached end of openapi type switch statement")
return TypeInfo{}, fmt.Errorf("openapi type for %q not found", p.GetTypes().(type))

Check failure on line 26 in writer/openapi/utils.go

View workflow job for this annotation

GitHub Actions / tests

invalid syntax tree: use of .(type) outside type switch
}
}

Expand Down

0 comments on commit fb04eaf

Please sign in to comment.