Skip to content

Commit

Permalink
Update kong/plugins/ai-prompt-guard/schema.lua
Browse files Browse the repository at this point in the history
Co-authored-by: Vinicius Mignot <[email protected]>
  • Loading branch information
tysoekong and locao committed Jan 25, 2024
1 parent 5b1a853 commit f471cae
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions kong/plugins/ai-prompt-guard/schema.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,6 @@ return {
entity_checks = {
{
at_least_one_of = { "config.allow_patterns", "config.deny_patterns" },
-- custom_entity_check = {
-- field_sources = { "config" },
-- fn = function(entity)
-- local config = entity.config

-- if config then
-- local allow_patterns_set = (config.allow_patterns) and (#config.allow_patterns > 0)
-- local deny_patterns_set = (config.deny_patterns) and (#config.deny_patterns > 0)

-- if (not allow_patterns_set) and (not deny_patterns_set) then
-- return nil, "must set one item in either [allow_patterns] or [deny_patterns]"
-- end
-- end

-- return true
-- end
-- }
}
}
}

0 comments on commit f471cae

Please sign in to comment.