Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): should_warn checks if kong global has been defined #13310

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kong/db/schema/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ function Schema:validate_field(field, value)

if field.deprecation then
local old_default = field.deprecation.old_default
local should_warn = kong.configuration.role ~= "data_plane" and
local should_warn = kong and kong.configuration and kong.configuration.role ~= "data_plane" and
(old_default == nil
or not deepcompare(value, old_default))
if should_warn then
Expand Down
Loading