Skip to content

Commit

Permalink
Cleaned up path rendering
Browse files Browse the repository at this point in the history
Signed-off-by: quobix <dave@quobix.com>
  • Loading branch information
daveshanley committed Jan 19, 2024
1 parent 6fd23f0 commit 47949ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/openapi/operation_descriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (od OperationDescription) RunRule(nodes []*yaml.Node, context model.RuleFun
continue
}

basePath := fmt.Sprintf("$.paths.%s.%s", opPath, opMethod)
basePath := fmt.Sprintf("$.paths['%s'].%s", opPath, opMethod)
descKey, descNode := utils.FindKeyNodeTop("description", method.Content)
_, summNode := utils.FindKeyNodeTop("summary", method.Content)
requestBodyKey, requestBodyNode := utils.FindKeyNodeTop("requestBody", method.Content)
Expand Down

0 comments on commit 47949ab

Please sign in to comment.