Skip to content

Commit

Permalink
Fix action return error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean-Coakley authored Jan 22, 2020
1 parent b277ad5 commit 49b8ece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/configuration/validation/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ func validateActionReturnBody(body string, fieldPath *field.Path) field.ErrorLis
}

var actionReturnTypeFmt = `([^;\{\}"\\]|\\.)*`
var actionReturnTypeErr = `must have all '"' (double quotes) escaped, must not contain '{', '}' or ';' and must not end with an unescaped '\' (backslash)`
var actionReturnTypeErr = `must have all '"' (double quotes), '{', '}' or ';' escaped and must not end with an unescaped '\' (backslash)`

var actionReturnTypeRegexp = regexp.MustCompile("^" + actionReturnTypeFmt + "$")

Expand Down

0 comments on commit 49b8ece

Please sign in to comment.