Skip to content

Commit

Permalink
adding empty check
Browse files Browse the repository at this point in the history
  • Loading branch information
daveshanley committed Sep 30, 2024
1 parent b3f00de commit 312a9e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parameters/validate_parameter.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func ValidateParameterSchema(
p := decodedObj
if rawIsMap {
if g, ko := rawObject.(map[string]interface{}); ko {
if len(g) == 0 || g[""] != nil {
if len(g) == 0 || (g[""] != nil && g[""] == "") {
p = nil
}
}
Expand Down

0 comments on commit 312a9e9

Please sign in to comment.