Skip to content

Accessing Readers in Mapping Templates #39

@AuPath

Description

@AuPath

This issue relates to how Chimera utilizes the mapping-template as a library to execute mappings with multiple Readers.

When the mapping-template is passed a map containing multiple Readers, where each entry is a key-value pair of "readerName": Reader, each Reader should be accessible in the template file as:

  • $readers.readerName (or $readers['readerName'])

If the map contains only a single Reader, that Reader should be accessible in two ways:

  1. $readers.readerName (or $readers['readerName'])
  2. $reader (to facilitate reusing existing mappings)

This ensures consistency while providing backward compatibility for templates that expect a direct $reader reference when handling a single Reader.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions