Skip to content

Commit

Permalink
cleaned up security rule
Browse files Browse the repository at this point in the history
Signed-off-by: quobix <dave@quobix.com>
  • Loading branch information
daveshanley committed Apr 3, 2024
1 parent e3d93b5 commit 3fd475c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions functions/openapi/operation_security_defined.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ func (osd OperationSecurityDefined) checkSecurityNode(securityNode *yaml.Node,

results = append(results, model.RuleFunctionResult{
Message: fmt.Sprintf("Security definition points a non-existent "+
"securityScheme '%s'", name.Value),
StartNode: startNode,
EndNode: vacuumUtils.BuildEndNode(startNode),
"securityScheme `%s`", name.Value),
StartNode: name,
EndNode: vacuumUtils.BuildEndNode(name),
Path: fmt.Sprintf("%s.security[%d]", basePath, i),
Rule: context.Rule,
})
Expand Down

0 comments on commit 3fd475c

Please sign in to comment.