Skip to content

Commit

Permalink
Merge pull request #125 from draeger-lab/fixmiriamparsing
Browse files Browse the repository at this point in the history
lenient miriam registry parsing
  • Loading branch information
draeger authored Jul 11, 2024
2 parents 13f4b1f + d472c50 commit fbe027e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/edu/ucsd/sbrg/miriam/RegistryParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import java.util.List;
import java.util.logging.Logger;

import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;

import edu.ucsd.sbrg.miriam.models.Miriam;
Expand Down Expand Up @@ -35,6 +36,7 @@ public static RegistryParser getInstance() {
Miriam parse() throws IOException {
logger.fine("Parsing MIRIAM registry");
ObjectMapper mapper = new ObjectMapper();
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
Root root = mapper.readValue(registry, Root.class);
List<Namespace> namespaces = root.getPayload().get("namespaces");
HashMap<String, Namespace> prefixIndexedNamespaces = new HashMap<>();
Expand Down

0 comments on commit fbe027e

Please sign in to comment.