From 91abd3b0ad198c8c8a8eee85c02745079404504d Mon Sep 17 00:00:00 2001 From: Andrei Bordak Date: Tue, 26 Nov 2024 10:14:35 +0400 Subject: [PATCH] MODLD-582: Fix failed tests --- .../linked/data/validation/spec/impl/SpecProviderImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/folio/linked/data/validation/spec/impl/SpecProviderImpl.java b/src/main/java/org/folio/linked/data/validation/spec/impl/SpecProviderImpl.java index 03752689..55cc4276 100644 --- a/src/main/java/org/folio/linked/data/validation/spec/impl/SpecProviderImpl.java +++ b/src/main/java/org/folio/linked/data/validation/spec/impl/SpecProviderImpl.java @@ -26,7 +26,8 @@ public class SpecProviderImpl implements SpecProvider { @Override public List getSpecRules() { try { - return Optional.ofNullable(client.getBibMarcSpecs().getBody()) + return Optional.ofNullable(client.getBibMarcSpecs()) + .map(ResponseEntity::getBody) .map(SpecificationDtoCollection::getSpecifications) .stream() .flatMap(Collection::stream)