Update schema.lua

This commit is contained in:
Daniel-Eisenberg 2025-07-24 18:15:26 +03:00 committed by GitHub
parent 10a0a440b6
commit 9efe08370d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,12 +3,19 @@ local typedefs = require "kong.db.schema.typedefs"
return {
name = "open-appsec-waf-kong-plugin",
fields = {
{ consumer = typedefs.no_consumer }, -- required for Konnect compatibility
{ protocols = typedefs.protocols_http }, -- required so Konnect knows when to allow this plugin
{ config = {
{ consumer = typedefs.no_consumer }, -- required for Konnect compatibility
{
protocols = {
type = "set",
elements = { type = "string", one_of = { "http", "https" } },
default = { "http", "https" },
},
},
{
config = {
type = "record",
fields = {
{ debug = { type = "boolean", default = false } },
{ debug = { type = "boolean", default = false } },
},
},
},