Skip to content

Commit 6faba99

Browse files
Service level validator custom error responses affect all requests
1 parent b7d0ef1 commit 6faba99

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lua/api-gateway/validation/validatorsHandlerErrorDecorator.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ end
194194
-- hook to overwrite the DEFAULT_RESPONSES by specifying a jsonString
195195
function ValidatorHandlerErrorDecorator:setUserDefinedResponsesFromJson(jsonString)
196196
if (jsonString == nil or #jsonString < 2) then
197+
user_defined_responses = nil
197198
return
198199
end
199200
local r = assert(cjson.decode(jsonString), "Invalid user defined jsonString:" .. tostring(jsonString))

0 commit comments

Comments
 (0)