diff --git a/kong/db/schema/entities/routes.lua b/kong/db/schema/entities/routes.lua index 9eb013ff0fc0..aa2706180744 100644 --- a/kong/db/schema/entities/routes.lua +++ b/kong/db/schema/entities/routes.lua @@ -70,7 +70,7 @@ if kong_router_flavor == "expressions" then entity_checks = { { custom_entity_check = { - field_sources = { "expression", "id", }, + field_sources = { "expression", }, fn = function(entity) local ok, err = validate_entity_by_expression(entity) if not ok then @@ -123,7 +123,7 @@ else table.insert(entity_checks, { custom_entity_check = { run_with_missing_fields = true, - field_sources = { "id", "paths", }, + field_sources = { "paths", }, fn = function(entity) if has_paths(entity) then local ok, err = validate_entity_by_expression(entity)