staging-client-java icon indicating copy to clipboard operation
staging-client-java copied to clipboard

Support constants in input mapping

Open ctmay4 opened this issue 10 years ago • 1 comments

Input mapping currently looks like this:

"input_mapping": [
    {  "from": "ajcc7_t", "to": "t" }
]

This example temporarily puts the context value contained in "ajcc_t" into "t" before processing a table. This allows tables to be reused with different inputs. The need has arisen to use constant values instead of existing keys. This is not difficult, however a good syntax needs to be decided on. Static strings could be quoted. That would look like this:

"input_mapping": [
    {  "from": "\"constant\"", "to": "t" }
]

ctmay4 avatar Mar 05 '15 14:03 ctmay4

To be clear, constants would be allowed for input_mapping.from and output_mapping.to.

ctmay4 avatar Mar 16 '15 20:03 ctmay4