Skip to content

Commit

Permalink
cleanup lua
Browse files Browse the repository at this point in the history
  • Loading branch information
shreemaan-abhishek committed Oct 3, 2024
1 parent 3a616e1 commit 4c1f2a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apisix/plugins/ai-content-moderation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ local schema = {
properties = {
aws_comprehend = aws_comprehend_schema
},
maxProperties = 1,
-- ensure only one provider can be configured while implementing support for
-- other providers
required = { "aws_comprehend" }
Expand Down Expand Up @@ -95,6 +96,7 @@ function _M.check_schema(conf)
return core.schema.check(schema, conf)
end


function _M.rewrite(conf, ctx)
conf = fetch_secrets(conf, true, conf, "")
if not conf then
Expand Down

0 comments on commit 4c1f2a6

Please sign in to comment.