Skip to content

Commit

Permalink
Fixed operation_descriptions function to remedy #148
Browse files Browse the repository at this point in the history
the `skip` bit needed resetting when looking at a method.
  • Loading branch information
daveshanley committed Oct 20, 2022
1 parent d281db9 commit fae7a82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions functions/openapi/operation_descriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ func (od OperationDescription) RunRule(nodes []*yaml.Node, context model.RuleFun

if m%2 == 0 {
opMethod = method.Value
if skip {
skip = false
}
continue
}
// skip non-operations
Expand Down

0 comments on commit fae7a82

Please sign in to comment.