Skip to content

Commit

Permalink
restore id field
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed May 5, 2023
1 parent ce4451f commit 875bbb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kong/db/schema/entities/routes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ if kong_router_flavor == "expressions" then

entity_checks = {
{ custom_entity_check = {
field_sources = { "expression", },
field_sources = { "expression", "id", },
fn = function(entity)
local ok, err = validate_entity_by_expression(entity)
if not ok then
Expand Down Expand Up @@ -123,7 +123,7 @@ else
table.insert(entity_checks,
{ custom_entity_check = {
run_with_missing_fields = true,
field_sources = { "paths", },
field_sources = { "id", "paths", },
fn = function(entity)
if has_paths(entity) then
local ok, err = validate_entity_by_expression(entity)
Expand Down

0 comments on commit 875bbb1

Please sign in to comment.