Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shreemaan-abhishek committed Aug 30, 2024
1 parent 5214d0d commit 2fe1ea2
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions apisix/plugins/content-moderation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
local core = require("apisix.core")
local aws = require("resty.aws")
local aws_instance = aws()
local http = require("resty.http")
local core = require("apisix.core")
local aws = require("resty.aws")
local aws_instance = aws()
local http = require("resty.http")
local next = next
local pairs = pairs
local unpack = unpack

local aws_comprehend_schema = {
type = "object",
Expand All @@ -33,7 +36,7 @@ local aws_comprehend_schema = {
required = { "access_key_id", "secret_access_key", "region", }
}

local schema = {
local schema = {
type = "object",
properties = {
provider = {
Expand All @@ -49,11 +52,11 @@ local schema = {
patternProperties = {
-- luacheck: push max code line length 300
["^(PROFANITY|HATE_SPEECH|INSULT|HARASSMENT_OR_ABUSE|SEXUAL|VIOLENCE_OR_THREAT)$"] = {
type = "number",
-- luacheck: pop
type = "number",
minimum = 0,
maximum = 1
}
-- luacheck: pop
},
additionalProperties = false
},
Expand Down

0 comments on commit 2fe1ea2

Please sign in to comment.