From 33614b3489b91a12ed542318ffc880cd6b51b58c Mon Sep 17 00:00:00 2001 From: redmitry Date: Fri, 26 Apr 2024 17:56:04 +0200 Subject: [PATCH] add limit=0 to filtering_terms endpoint (because the validator won't do it anymore) --- .../inb/ga4gh/beacon/network/config/NetworkConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/es/bsc/inb/ga4gh/beacon/network/config/NetworkConfiguration.java b/src/main/java/es/bsc/inb/ga4gh/beacon/network/config/NetworkConfiguration.java index 49f595d..c6a1e7f 100644 --- a/src/main/java/es/bsc/inb/ga4gh/beacon/network/config/NetworkConfiguration.java +++ b/src/main/java/es/bsc/inb/ga4gh/beacon/network/config/NetworkConfiguration.java @@ -355,7 +355,7 @@ private String getBeaconId(String endpoint) { public BeaconFilteringTermsResponse loadFilteringTerms(String endpoint) { try { final List err = new ArrayList(); - final String json = validator.loadMetadata(endpoint, new ValidationErrorsCollector(err)); + final String json = validator.loadMetadata(endpoint + "?limit=0", new ValidationErrorsCollector(err)); if (err.isEmpty()) { return (BeaconFilteringTermsResponse)validator.parseMetadata(json, BeaconMetadataSchema.BEACON_FILTERING_TERMS_SCHEMA); }