From 65ede0aeb0432f7bd8fc59c4594ad3f6f4537365 Mon Sep 17 00:00:00 2001 From: Attilio Mattiocco Date: Wed, 16 Oct 2024 09:38:26 +0200 Subject: [PATCH] align addProvider interface, fix #266 --- MATLAB/addProvider.m | 4 ++-- MATLAB/test/testSDMX.m | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/MATLAB/addProvider.m b/MATLAB/addProvider.m index f390461..2bb1935 100644 --- a/MATLAB/addProvider.m +++ b/MATLAB/addProvider.m @@ -1,4 +1,4 @@ -function addProvider(name, endpoint, needsCredentials, needsURLEncoding, supportsCompression, description, sdmxVersion) +function addProvider(name, endpoint, needsCredentials, needsURLEncoding, supportsCompression, description, sdmxVersion, supportsAvailability) % Add a new provider to the internal registry. The provider has to be % fully compliant with the SDMX 2.1 specifications % @@ -55,7 +55,7 @@ function addProvider(name, endpoint, needsCredentials, needsURLEncoding, support ])); end if nargin < 8 - supportsAvailability = true; + supportsAvailability = false; end if nargin < 7 sdmxVersion = it.bancaditalia.oss.sdmx.api.SDMXVersion.V2; diff --git a/MATLAB/test/testSDMX.m b/MATLAB/test/testSDMX.m index 388b163..4518702 100644 --- a/MATLAB/test/testSDMX.m +++ b/MATLAB/test/testSDMX.m @@ -28,8 +28,7 @@ n = length(providers); assert(n > 1, 'Error getProviders'); -addProvider('test', endpoint = 'a.b.c.d', needsCredentials = F, needsURLEncoding = F, supportsCompression = T, - description = '', sdmxVersion = 'V3', supportsAvailability = T); +addProvider('test', 'a.b.c.d', false, false, false, '', 'V3', true); providers = getProviders; assert(n+1 == length(providers), 'Error addProvider');