Skip to content

Commit

Permalink
Bubble up buildOperations error.
Browse files Browse the repository at this point in the history
  • Loading branch information
godwinpang committed Jun 30, 2024
1 parent b456828 commit 81c84df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/builder3/openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,10 @@ func (o *openAPI) buildOpenAPISpec(webServices []common.RouteContainer) error {
sortParameters(pathItem.Parameters)

for _, route := range routes {
op, _ := o.buildOperations(route, inPathCommonParamsMap)
op, err := o.buildOperations(route, inPathCommonParamsMap)
if err != nil {
return err
}
sortParameters(op.Parameters)

switch strings.ToUpper(route.Method()) {
Expand Down

0 comments on commit 81c84df

Please sign in to comment.