Skip to content

mapping-template v2.1.1

Choose a tag to compare

@AuPath AuPath released this 14 Jun 13:29
· 238 commits to main since this release

Features

  • Improved the <K,V> V getMapValue(Map<K, V> map, K key, V defaultValue) function available in VTL template files through the $functions variable.

    It now accepts a third defaultValue argument that will be returned if key is not found in map.
    If no defaultValue is provided then null is returned, which is the same behaviour found in previous versions of rdf-template.

Fixes

  • Fixed custom JsonPath handling.
    Now works for both json files with multiple and single records. Incorrect handling of single record json files was an unintended regression.