Skip to content

Commit

Permalink
check unknown field
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Dec 20, 2023
1 parent 33fb5a2 commit 1545a97
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kong/router/fields.lua
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,13 @@ local function get_cache_key(fields, params)

return true
end)

goto continue
end -- if func

-- ignore unknown fields
if not func then -- unknown field
error("unknown router matching schema field: " .. field)
end -- if func

::continue::
end -- for fields
Expand Down

0 comments on commit 1545a97

Please sign in to comment.