Skip to content

Commit

Permalink
align addProvider interface, fix #266
Browse files Browse the repository at this point in the history
  • Loading branch information
amattioc committed Oct 16, 2024
1 parent 2b2fb15 commit 65ede0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions MATLAB/addProvider.m
Original file line number Diff line number Diff line change
@@ -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
%
Expand Down Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions MATLAB/test/testSDMX.m
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 65ede0a

Please sign in to comment.