ksclarke/jiiify-presentation

Test for manifest/collection before using mapFrom()

ksclarke opened this issue · 0 comments

Check the top level to see if the JSON we want to run through mapFrom() is a collection or manifest so that we can throw an earlier exception that makes more sense than the default Jackson one thrown when parsing the wrong structure.