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)