Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(workflow): support limit count action #7771

Merged
merged 11 commits into from
Aug 29, 2022
4 changes: 4 additions & 0 deletions apisix/plugins/workflow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ function _M.check_schema(conf)
return false, "failed to validate the '" .. action[1] .. "' action: " .. err
end

if action[1] == "limit-count" and action[2]["group"] then
tzssangglass marked this conversation as resolved.
Show resolved Hide resolved
return false, "failed to validate the '" .. action[1] .. "' action: group is not supported in workflow"
end

-- use the action's idx as an identifier to isolate between confs
action[2]["_vid"] = idx
end
Expand Down
Loading