Skip to content

Commit

Permalink
chore: avoid injecting ip-restriction twice to interceptors_schema (#…
Browse files Browse the repository at this point in the history
…4939)

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
  • Loading branch information
spacewander authored Sep 7, 2021
1 parent 2f45642 commit d3e104e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apisix/admin/plugin_metadata.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ local function check_conf(plugin_name, conf)
schema.properties.interceptors = api_router.interceptors_schema

core.log.info("schema: ", core.json.delay_encode(schema))
core.log.info("conf : ", core.json.delay_encode(conf))
core.log.info("conf: ", core.json.delay_encode(conf))

local ok, err
if schema['$comment'] == injected_mark
Expand Down
2 changes: 1 addition & 1 deletion apisix/api_router.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ _M.interceptors_schema = {
properties = {
name = {
type = "string",
enum = {"ip-restriction"},
enum = {},
},
conf = {
type = "object",
Expand Down

0 comments on commit d3e104e

Please sign in to comment.