From 718e91f635914e59e7fc835aad71e0ade50e0141 Mon Sep 17 00:00:00 2001 From: Jeffy Mathew Date: Fri, 10 Jan 2025 11:34:49 +0100 Subject: [PATCH] Add trailing slash on json schema --- apidef/oas/schema/x-tyk-api-gateway.json | 2 +- gateway/mw_ip_whitelist.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apidef/oas/schema/x-tyk-api-gateway.json b/apidef/oas/schema/x-tyk-api-gateway.json index 22ab80c6da1..76d4118829b 100644 --- a/apidef/oas/schema/x-tyk-api-gateway.json +++ b/apidef/oas/schema/x-tyk-api-gateway.json @@ -2184,4 +2184,4 @@ } } } -} \ No newline at end of file +} diff --git a/gateway/mw_ip_whitelist.go b/gateway/mw_ip_whitelist.go index add223ca613..10be87961d7 100644 --- a/gateway/mw_ip_whitelist.go +++ b/gateway/mw_ip_whitelist.go @@ -18,7 +18,7 @@ func (i *IPWhiteListMiddleware) Name() string { } func (i *IPWhiteListMiddleware) EnabledForSpec() bool { - if i.Spec.IPAccessControlDisabled { + if i.Spec.APIDefinition.IPAccessControlDisabled { return false }