Update dependencies (#5518)
This commit is contained in:
7
vendor/github.com/open-policy-agent/opa/ast/conflicts.go
generated
vendored
7
vendor/github.com/open-policy-agent/opa/ast/conflicts.go
generated
vendored
@@ -27,7 +27,12 @@ func CheckPathConflicts(c *Compiler, exists func([]string) (bool, error)) Errors
|
||||
|
||||
func checkDocumentConflicts(node *TreeNode, exists func([]string) (bool, error), path []string) Errors {
|
||||
|
||||
path = append(path, string(node.Key.(String)))
|
||||
switch key := node.Key.(type) {
|
||||
case String:
|
||||
path = append(path, string(key))
|
||||
default: // other key types cannot conflict with data
|
||||
return nil
|
||||
}
|
||||
|
||||
if len(node.Values) > 0 {
|
||||
s := strings.Join(path, "/")
|
||||
|
||||
Reference in New Issue
Block a user