@celigo/api-specs 0.2.332 → 0.2.334

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ai-agent.yml CHANGED
@@ -2862,9 +2862,13 @@ components:
2862
2862
  - Contains '{{' and '}}' pattern
2863
2863
  - Evaluated by the AFE 2.0 handlebars template engine
2864
2864
  - Can include logic, formatting, and computation
2865
- - Access input record fields with {{record.fieldName}} notation; a grouped
2866
- (array) record binds as `rows` instead — {{rows.0.fieldName}} / {{#each rows}}
2867
- - Examples: "{{record.firstName}} {{record.lastName}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
2865
+ - Access input record fields with {{{record.fieldName}}} notation; a grouped
2866
+ (array) record binds as `rows` instead — {{{rows.0.fieldName}}} / {{#each rows}}
2867
+ - Write a substitution that outputs a value with triple braces. Double braces
2868
+ HTML-escape what they output — a field and a helper's result alike: `O'Brien`
2869
+ is written as `O'Brien` and `A&B` as `A&B`. Block tags (`{{#if}}`,
2870
+ `{{else}}`, `{{/if}}`) keep double braces
2871
+ - Examples: "{{{record.firstName}}} {{{record.lastName}}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
2868
2872
  - Valid on scalars and on `object` rows, where the rendered output must
2869
2873
  parse into an object. On an array row the template goes in a
2870
2874
  `buildArrayHelper` entry instead: on an `objectarray` row's own
@@ -2874,7 +2878,7 @@ components:
2874
2878
  error
2875
2879
 
2876
2880
  ```json
2877
- "extract": "{{record.price}} {{record.currency}}" // Combines two fields
2881
+ "extract": "{{{record.price}}} {{{record.currency}}}" // Combines two fields
2878
2882
  ```
2879
2883
 
2880
2884
  **3. Hard-Coded Value (literal string)**
@@ -2930,9 +2934,9 @@ components:
2930
2934
  [{"extract": "$[*].field"}]`; an `objectarray` uses
2931
2935
  `buildArrayHelper: [{"extract": "$[*]", "mappings": [...]}]`
2932
2936
  with the children addressing the row relatively (`$.field`,
2933
- `{{rows.field}}`). An `extract` placed directly on the
2937
+ `{{{rows.field}}}`). An `extract` placed directly on the
2934
2938
  array-typed field yields nothing. Handlebars
2935
- extracts bind the array record as `rows` (`{{rows.0.field}}`),
2939
+ extracts bind the array record as `rows` (`{{{rows.0.field}}}`),
2936
2940
  an object record as `record`. The reverse holds too: `$[*]` on
2937
2941
  an object record iterates the object's values, not rows.
2938
2942
  - |-
@@ -2954,9 +2958,22 @@ components:
2954
2958
  - **Use a lookup** (`lookupName` + a small `lookups` entry)
2955
2959
  for value translation that would otherwise need a long
2956
2960
  `{{#if ...}}{{else if ...}}` chain.
2961
+ - |-
2962
+ ## TRIPLE BRACES FOR VALUES
2963
+ A substitution that outputs a value is written with triple
2964
+ braces. With double braces the mapper HTML-escapes the output —
2965
+ `&`, `<`, `>`, `"` and `'` become `&amp;`, `&lt;`, `&gt;`,
2966
+ `&quot;` and `&#x27;` — for a field (`{{record.name}}`), for a
2967
+ helper's result (`{{uppercase record.name}}`, `{{join ", "
2968
+ record.tags}}`) and inside a block (`{{#if
2969
+ record.name}}{{record.name}}{{/if}}`), with no error: the
2970
+ destination receives `O&#x27;Brien` for `O'Brien`. The same
2971
+ expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
2972
+ record.name}}}`) and a JSONPath extract (`$.name`) write the value
2973
+ unchanged. Transformation 2.0 rules behave the same.
2957
2974
  examples:
2958
2975
  - $.fullName
2959
- - '{{record.fullName}}'
2976
+ - '{{{record.fullName}}}'
2960
2977
  - primary
2961
2978
  - $.lineItems[*].unitPrice
2962
2979
  extractDateFormat:
@@ -3986,9 +4003,13 @@ components:
3986
4003
  - Contains '{{' and '}}' pattern
3987
4004
  - Evaluated by the AFE 2.0 handlebars template engine
3988
4005
  - Can include logic, formatting, and computation
3989
- - Access input record fields with {{record.fieldName}} notation; a grouped
3990
- (array) record binds as `rows` instead — {{rows.0.fieldName}} / {{#each rows}}
3991
- - Examples: "{{record.firstName}} {{record.lastName}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
4006
+ - Access input record fields with {{{record.fieldName}}} notation; a grouped
4007
+ (array) record binds as `rows` instead — {{{rows.0.fieldName}}} / {{#each rows}}
4008
+ - Write a substitution that outputs a value with triple braces. Double braces
4009
+ HTML-escape what they output — a field and a helper's result alike: `O'Brien`
4010
+ is written as `O&#x27;Brien` and `A&B` as `A&amp;B`. Block tags (`{{#if}}`,
4011
+ `{{else}}`, `{{/if}}`) keep double braces
4012
+ - Examples: "{{{record.firstName}}} {{{record.lastName}}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
3992
4013
  - Valid on scalars and on `object` rows, where the rendered output must
3993
4014
  parse into an object. On an array row the template goes in a
3994
4015
  `buildArrayHelper` entry instead: on an `objectarray` row's own
@@ -3998,7 +4019,7 @@ components:
3998
4019
  error
3999
4020
 
4000
4021
  ```json
4001
- "extract": "{{record.price}} {{record.currency}}" // Combines two fields
4022
+ "extract": "{{{record.price}}} {{{record.currency}}}" // Combines two fields
4002
4023
  ```
4003
4024
 
4004
4025
  **3. Hard-Coded Value (literal string)**
@@ -4054,9 +4075,9 @@ components:
4054
4075
  [{"extract": "$[*].field"}]`; an `objectarray` uses
4055
4076
  `buildArrayHelper: [{"extract": "$[*]", "mappings": [...]}]`
4056
4077
  with the children addressing the row relatively (`$.field`,
4057
- `{{rows.field}}`). An `extract` placed directly on the
4078
+ `{{{rows.field}}}`). An `extract` placed directly on the
4058
4079
  array-typed field yields nothing. Handlebars
4059
- extracts bind the array record as `rows` (`{{rows.0.field}}`),
4080
+ extracts bind the array record as `rows` (`{{{rows.0.field}}}`),
4060
4081
  an object record as `record`. The reverse holds too: `$[*]` on
4061
4082
  an object record iterates the object's values, not rows.
4062
4083
  - |-
@@ -4078,9 +4099,22 @@ components:
4078
4099
  - **Use a lookup** (`lookupName` + a small `lookups` entry)
4079
4100
  for value translation that would otherwise need a long
4080
4101
  `{{#if ...}}{{else if ...}}` chain.
4102
+ - |-
4103
+ ## TRIPLE BRACES FOR VALUES
4104
+ A substitution that outputs a value is written with triple
4105
+ braces. With double braces the mapper HTML-escapes the output —
4106
+ `&`, `<`, `>`, `"` and `'` become `&amp;`, `&lt;`, `&gt;`,
4107
+ `&quot;` and `&#x27;` — for a field (`{{record.name}}`), for a
4108
+ helper's result (`{{uppercase record.name}}`, `{{join ", "
4109
+ record.tags}}`) and inside a block (`{{#if
4110
+ record.name}}{{record.name}}{{/if}}`), with no error: the
4111
+ destination receives `O&#x27;Brien` for `O'Brien`. The same
4112
+ expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
4113
+ record.name}}}`) and a JSONPath extract (`$.name`) write the value
4114
+ unchanged. Transformation 2.0 rules behave the same.
4081
4115
  examples:
4082
4116
  - $.fullName
4083
- - '{{record.fullName}}'
4117
+ - '{{{record.fullName}}}'
4084
4118
  - primary
4085
4119
  - $.lineItems[*].unitPrice
4086
4120
  extractDateFormat:
@@ -5993,9 +6027,9 @@ components:
5993
6027
  the envelope shape on purpose.
5994
6028
  - |-
5995
6029
  Handlebars expressions inside `extract` reference the
5996
- `record` root on an object record (`{{record.field}}`,
5997
- `{{dateFormat ... record.field}}`) and `rows` on a
5998
- grouped one (`{{rows.0.field}}`), regardless of
6030
+ `record` root on an object record (`{{{record.field}}}`,
6031
+ `{{{dateFormat ... record.field}}}`) and `rows` on a
6032
+ grouped one (`{{{rows.0.field}}}`), regardless of
5999
6033
  `inputContext` — only JSONPath anchoring flips.
6000
6034
  - |-
6001
6035
  ## Grouped records
@@ -6007,7 +6041,7 @@ components:
6007
6041
  `$.rows[*]` whose children read `$.rows.field` — while
6008
6042
  `$.record[0].field` and `$.record[*]` resolve nothing,
6009
6043
  with no error (live, 2026-10-30). Handlebars extracts
6010
- read it as `rows` in both modes (`{{rows.0.field}}`).
6044
+ read it as `rows` in both modes (`{{{rows.0.field}}}`).
6011
6045
  - |-
6012
6046
  In `envelope` mode the output is still a bare record: a
6013
6047
  `modify` transform returns the record with its mapped
@@ -6056,10 +6090,10 @@ components:
6056
6090
  ## Handlebars expressions are NOT affected
6057
6091
 
6058
6092
  Handlebars expressions inside ``extract``
6059
- (``{{record.field}}``,
6060
- ``{{dateFormat ... record.field}}``, etc.) reference the
6093
+ (``{{{record.field}}}``,
6094
+ ``{{{dateFormat ... record.field}}}``, etc.) reference the
6061
6095
  runtime context's ``record`` root on an object record,
6062
- and ``rows`` (``{{rows.0.field}}``) on a grouped one,
6096
+ and ``rows`` (``{{{rows.0.field}}}``) on a grouped one,
6063
6097
  regardless of ``inputContext`` — the Handlebars runtime
6064
6098
  always sees the wrapped envelope. Only JSONPath
6065
6099
  behavior flips with this field.
@@ -6083,7 +6117,7 @@ components:
6083
6117
  source file: ``fileName``, ``fileSize``, and
6084
6118
  ``lastModifiedTime`` (epoch milliseconds). Reach it
6085
6119
  as ``$.fileMeta.<field>`` in envelope mode, or as
6086
- ``{{fileMeta.<field>}}`` from a Handlebars extract in
6120
+ ``{{{fileMeta.<field>}}}`` from a Handlebars extract in
6087
6121
  either mode. The keys are exactly these three —
6088
6122
  lowercase variants such as ``filesize`` or
6089
6123
  ``filename`` resolve empty. The standalone transform
package/dist/api.yml CHANGED
@@ -1996,7 +1996,13 @@ paths:
1996
1996
  properties:
1997
1997
  stages:
1998
1998
  type: array
1999
- description: Ordered stages that ran for this step.
1999
+ description: |-
2000
+ Ordered stages that ran for this step. A lookup on an HTTP export that called
2001
+ its application has `statusCode` and the application's response `headers`
2002
+ beside `body` and `url` in its `response` output; one that answered from the
2003
+ `mockOutput` saved on its export has only `body` and `url` there, and its
2004
+ stage list starts with `exportMapping` — no request was sent, though `request`
2005
+ and `response` are recorded.
2000
2006
  items:
2001
2007
  type: object
2002
2008
  properties:
@@ -2124,6 +2130,11 @@ paths:
2124
2130
  request/response envelope with `GET /v1/apis/{_id}/{_stepId}/requests/{key}`. A step id that
2125
2131
  is not an export or import (such as a router) returns a 400 `invalid_ref`, and a step that
2126
2132
  captured no request/response data returns a 404 `req_res_logs_not_found`.
2133
+
2134
+ An entry is recorded for a lookup on an HTTP export whether or not its request left the
2135
+ platform: one that answered from the `mockOutput` saved on its export has an entry too. To
2136
+ tell a call that was made from one that was not, read the step's `response` stage with
2137
+ `GET /v1/apis/{_id}/test/run/{runId}/{_stepId}`.
2127
2138
  parameters:
2128
2139
  - name: _id
2129
2140
  in: path
@@ -2949,9 +2960,13 @@ components:
2949
2960
  - Contains '{{' and '}}' pattern
2950
2961
  - Evaluated by the AFE 2.0 handlebars template engine
2951
2962
  - Can include logic, formatting, and computation
2952
- - Access input record fields with {{record.fieldName}} notation; a grouped
2953
- (array) record binds as `rows` instead — {{rows.0.fieldName}} / {{#each rows}}
2954
- - Examples: "{{record.firstName}} {{record.lastName}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
2963
+ - Access input record fields with {{{record.fieldName}}} notation; a grouped
2964
+ (array) record binds as `rows` instead — {{{rows.0.fieldName}}} / {{#each rows}}
2965
+ - Write a substitution that outputs a value with triple braces. Double braces
2966
+ HTML-escape what they output — a field and a helper's result alike: `O'Brien`
2967
+ is written as `O&#x27;Brien` and `A&B` as `A&amp;B`. Block tags (`{{#if}}`,
2968
+ `{{else}}`, `{{/if}}`) keep double braces
2969
+ - Examples: "{{{record.firstName}}} {{{record.lastName}}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
2955
2970
  - Valid on scalars and on `object` rows, where the rendered output must
2956
2971
  parse into an object. On an array row the template goes in a
2957
2972
  `buildArrayHelper` entry instead: on an `objectarray` row's own
@@ -2961,7 +2976,7 @@ components:
2961
2976
  error
2962
2977
 
2963
2978
  ```json
2964
- "extract": "{{record.price}} {{record.currency}}" // Combines two fields
2979
+ "extract": "{{{record.price}}} {{{record.currency}}}" // Combines two fields
2965
2980
  ```
2966
2981
 
2967
2982
  **3. Hard-Coded Value (literal string)**
@@ -3017,9 +3032,9 @@ components:
3017
3032
  [{"extract": "$[*].field"}]`; an `objectarray` uses
3018
3033
  `buildArrayHelper: [{"extract": "$[*]", "mappings": [...]}]`
3019
3034
  with the children addressing the row relatively (`$.field`,
3020
- `{{rows.field}}`). An `extract` placed directly on the
3035
+ `{{{rows.field}}}`). An `extract` placed directly on the
3021
3036
  array-typed field yields nothing. Handlebars
3022
- extracts bind the array record as `rows` (`{{rows.0.field}}`),
3037
+ extracts bind the array record as `rows` (`{{{rows.0.field}}}`),
3023
3038
  an object record as `record`. The reverse holds too: `$[*]` on
3024
3039
  an object record iterates the object's values, not rows.
3025
3040
  - |-
@@ -3041,9 +3056,22 @@ components:
3041
3056
  - **Use a lookup** (`lookupName` + a small `lookups` entry)
3042
3057
  for value translation that would otherwise need a long
3043
3058
  `{{#if ...}}{{else if ...}}` chain.
3059
+ - |-
3060
+ ## TRIPLE BRACES FOR VALUES
3061
+ A substitution that outputs a value is written with triple
3062
+ braces. With double braces the mapper HTML-escapes the output —
3063
+ `&`, `<`, `>`, `"` and `'` become `&amp;`, `&lt;`, `&gt;`,
3064
+ `&quot;` and `&#x27;` — for a field (`{{record.name}}`), for a
3065
+ helper's result (`{{uppercase record.name}}`, `{{join ", "
3066
+ record.tags}}`) and inside a block (`{{#if
3067
+ record.name}}{{record.name}}{{/if}}`), with no error: the
3068
+ destination receives `O&#x27;Brien` for `O'Brien`. The same
3069
+ expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
3070
+ record.name}}}`) and a JSONPath extract (`$.name`) write the value
3071
+ unchanged. Transformation 2.0 rules behave the same.
3044
3072
  examples:
3045
3073
  - $.fullName
3046
- - '{{record.fullName}}'
3074
+ - '{{{record.fullName}}}'
3047
3075
  - primary
3048
3076
  - $.lineItems[*].unitPrice
3049
3077
  extractDateFormat:
@@ -4073,9 +4101,13 @@ components:
4073
4101
  - Contains '{{' and '}}' pattern
4074
4102
  - Evaluated by the AFE 2.0 handlebars template engine
4075
4103
  - Can include logic, formatting, and computation
4076
- - Access input record fields with {{record.fieldName}} notation; a grouped
4077
- (array) record binds as `rows` instead — {{rows.0.fieldName}} / {{#each rows}}
4078
- - Examples: "{{record.firstName}} {{record.lastName}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
4104
+ - Access input record fields with {{{record.fieldName}}} notation; a grouped
4105
+ (array) record binds as `rows` instead — {{{rows.0.fieldName}}} / {{#each rows}}
4106
+ - Write a substitution that outputs a value with triple braces. Double braces
4107
+ HTML-escape what they output — a field and a helper's result alike: `O'Brien`
4108
+ is written as `O&#x27;Brien` and `A&B` as `A&amp;B`. Block tags (`{{#if}}`,
4109
+ `{{else}}`, `{{/if}}`) keep double braces
4110
+ - Examples: "{{{record.firstName}}} {{{record.lastName}}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
4079
4111
  - Valid on scalars and on `object` rows, where the rendered output must
4080
4112
  parse into an object. On an array row the template goes in a
4081
4113
  `buildArrayHelper` entry instead: on an `objectarray` row's own
@@ -4085,7 +4117,7 @@ components:
4085
4117
  error
4086
4118
 
4087
4119
  ```json
4088
- "extract": "{{record.price}} {{record.currency}}" // Combines two fields
4120
+ "extract": "{{{record.price}}} {{{record.currency}}}" // Combines two fields
4089
4121
  ```
4090
4122
 
4091
4123
  **3. Hard-Coded Value (literal string)**
@@ -4141,9 +4173,9 @@ components:
4141
4173
  [{"extract": "$[*].field"}]`; an `objectarray` uses
4142
4174
  `buildArrayHelper: [{"extract": "$[*]", "mappings": [...]}]`
4143
4175
  with the children addressing the row relatively (`$.field`,
4144
- `{{rows.field}}`). An `extract` placed directly on the
4176
+ `{{{rows.field}}}`). An `extract` placed directly on the
4145
4177
  array-typed field yields nothing. Handlebars
4146
- extracts bind the array record as `rows` (`{{rows.0.field}}`),
4178
+ extracts bind the array record as `rows` (`{{{rows.0.field}}}`),
4147
4179
  an object record as `record`. The reverse holds too: `$[*]` on
4148
4180
  an object record iterates the object's values, not rows.
4149
4181
  - |-
@@ -4165,9 +4197,22 @@ components:
4165
4197
  - **Use a lookup** (`lookupName` + a small `lookups` entry)
4166
4198
  for value translation that would otherwise need a long
4167
4199
  `{{#if ...}}{{else if ...}}` chain.
4200
+ - |-
4201
+ ## TRIPLE BRACES FOR VALUES
4202
+ A substitution that outputs a value is written with triple
4203
+ braces. With double braces the mapper HTML-escapes the output —
4204
+ `&`, `<`, `>`, `"` and `'` become `&amp;`, `&lt;`, `&gt;`,
4205
+ `&quot;` and `&#x27;` — for a field (`{{record.name}}`), for a
4206
+ helper's result (`{{uppercase record.name}}`, `{{join ", "
4207
+ record.tags}}`) and inside a block (`{{#if
4208
+ record.name}}{{record.name}}{{/if}}`), with no error: the
4209
+ destination receives `O&#x27;Brien` for `O'Brien`. The same
4210
+ expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
4211
+ record.name}}}`) and a JSONPath extract (`$.name`) write the value
4212
+ unchanged. Transformation 2.0 rules behave the same.
4168
4213
  examples:
4169
4214
  - $.fullName
4170
- - '{{record.fullName}}'
4215
+ - '{{{record.fullName}}}'
4171
4216
  - primary
4172
4217
  - $.lineItems[*].unitPrice
4173
4218
  extractDateFormat:
@@ -5570,9 +5615,9 @@ components:
5570
5615
  the envelope shape on purpose.
5571
5616
  - |-
5572
5617
  Handlebars expressions inside `extract` reference the
5573
- `record` root on an object record (`{{record.field}}`,
5574
- `{{dateFormat ... record.field}}`) and `rows` on a
5575
- grouped one (`{{rows.0.field}}`), regardless of
5618
+ `record` root on an object record (`{{{record.field}}}`,
5619
+ `{{{dateFormat ... record.field}}}`) and `rows` on a
5620
+ grouped one (`{{{rows.0.field}}}`), regardless of
5576
5621
  `inputContext` — only JSONPath anchoring flips.
5577
5622
  - |-
5578
5623
  ## Grouped records
@@ -5584,7 +5629,7 @@ components:
5584
5629
  `$.rows[*]` whose children read `$.rows.field` — while
5585
5630
  `$.record[0].field` and `$.record[*]` resolve nothing,
5586
5631
  with no error (live, 2026-10-30). Handlebars extracts
5587
- read it as `rows` in both modes (`{{rows.0.field}}`).
5632
+ read it as `rows` in both modes (`{{{rows.0.field}}}`).
5588
5633
  - |-
5589
5634
  In `envelope` mode the output is still a bare record: a
5590
5635
  `modify` transform returns the record with its mapped
@@ -5633,10 +5678,10 @@ components:
5633
5678
  ## Handlebars expressions are NOT affected
5634
5679
 
5635
5680
  Handlebars expressions inside ``extract``
5636
- (``{{record.field}}``,
5637
- ``{{dateFormat ... record.field}}``, etc.) reference the
5681
+ (``{{{record.field}}}``,
5682
+ ``{{{dateFormat ... record.field}}}``, etc.) reference the
5638
5683
  runtime context's ``record`` root on an object record,
5639
- and ``rows`` (``{{rows.0.field}}``) on a grouped one,
5684
+ and ``rows`` (``{{{rows.0.field}}}``) on a grouped one,
5640
5685
  regardless of ``inputContext`` — the Handlebars runtime
5641
5686
  always sees the wrapped envelope. Only JSONPath
5642
5687
  behavior flips with this field.
@@ -5660,7 +5705,7 @@ components:
5660
5705
  source file: ``fileName``, ``fileSize``, and
5661
5706
  ``lastModifiedTime`` (epoch milliseconds). Reach it
5662
5707
  as ``$.fileMeta.<field>`` in envelope mode, or as
5663
- ``{{fileMeta.<field>}}`` from a Handlebars extract in
5708
+ ``{{{fileMeta.<field>}}}`` from a Handlebars extract in
5664
5709
  either mode. The keys are exactly these three —
5665
5710
  lowercase variants such as ``filesize`` or
5666
5711
  ``filename`` resolve empty. The standalone transform
@@ -652,9 +652,13 @@ components:
652
652
  - Contains '{{' and '}}' pattern
653
653
  - Evaluated by the AFE 2.0 handlebars template engine
654
654
  - Can include logic, formatting, and computation
655
- - Access input record fields with {{record.fieldName}} notation; a grouped
656
- (array) record binds as `rows` instead — {{rows.0.fieldName}} / {{#each rows}}
657
- - Examples: "{{record.firstName}} {{record.lastName}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
655
+ - Access input record fields with {{{record.fieldName}}} notation; a grouped
656
+ (array) record binds as `rows` instead — {{{rows.0.fieldName}}} / {{#each rows}}
657
+ - Write a substitution that outputs a value with triple braces. Double braces
658
+ HTML-escape what they output — a field and a helper's result alike: `O'Brien`
659
+ is written as `O&#x27;Brien` and `A&B` as `A&amp;B`. Block tags (`{{#if}}`,
660
+ `{{else}}`, `{{/if}}`) keep double braces
661
+ - Examples: "{{{record.firstName}}} {{{record.lastName}}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
658
662
  - Valid on scalars and on `object` rows, where the rendered output must
659
663
  parse into an object. On an array row the template goes in a
660
664
  `buildArrayHelper` entry instead: on an `objectarray` row's own
@@ -664,7 +668,7 @@ components:
664
668
  error
665
669
 
666
670
  ```json
667
- "extract": "{{record.price}} {{record.currency}}" // Combines two fields
671
+ "extract": "{{{record.price}}} {{{record.currency}}}" // Combines two fields
668
672
  ```
669
673
 
670
674
  **3. Hard-Coded Value (literal string)**
@@ -720,9 +724,9 @@ components:
720
724
  [{"extract": "$[*].field"}]`; an `objectarray` uses
721
725
  `buildArrayHelper: [{"extract": "$[*]", "mappings": [...]}]`
722
726
  with the children addressing the row relatively (`$.field`,
723
- `{{rows.field}}`). An `extract` placed directly on the
727
+ `{{{rows.field}}}`). An `extract` placed directly on the
724
728
  array-typed field yields nothing. Handlebars
725
- extracts bind the array record as `rows` (`{{rows.0.field}}`),
729
+ extracts bind the array record as `rows` (`{{{rows.0.field}}}`),
726
730
  an object record as `record`. The reverse holds too: `$[*]` on
727
731
  an object record iterates the object's values, not rows.
728
732
  - |-
@@ -744,9 +748,22 @@ components:
744
748
  - **Use a lookup** (`lookupName` + a small `lookups` entry)
745
749
  for value translation that would otherwise need a long
746
750
  `{{#if ...}}{{else if ...}}` chain.
751
+ - |-
752
+ ## TRIPLE BRACES FOR VALUES
753
+ A substitution that outputs a value is written with triple
754
+ braces. With double braces the mapper HTML-escapes the output —
755
+ `&`, `<`, `>`, `"` and `'` become `&amp;`, `&lt;`, `&gt;`,
756
+ `&quot;` and `&#x27;` — for a field (`{{record.name}}`), for a
757
+ helper's result (`{{uppercase record.name}}`, `{{join ", "
758
+ record.tags}}`) and inside a block (`{{#if
759
+ record.name}}{{record.name}}{{/if}}`), with no error: the
760
+ destination receives `O&#x27;Brien` for `O'Brien`. The same
761
+ expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
762
+ record.name}}}`) and a JSONPath extract (`$.name`) write the value
763
+ unchanged. Transformation 2.0 rules behave the same.
747
764
  examples:
748
765
  - $.fullName
749
- - '{{record.fullName}}'
766
+ - '{{{record.fullName}}}'
750
767
  - primary
751
768
  - $.lineItems[*].unitPrice
752
769
  extractDateFormat:
@@ -1776,9 +1793,13 @@ components:
1776
1793
  - Contains '{{' and '}}' pattern
1777
1794
  - Evaluated by the AFE 2.0 handlebars template engine
1778
1795
  - Can include logic, formatting, and computation
1779
- - Access input record fields with {{record.fieldName}} notation; a grouped
1780
- (array) record binds as `rows` instead — {{rows.0.fieldName}} / {{#each rows}}
1781
- - Examples: "{{record.firstName}} {{record.lastName}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
1796
+ - Access input record fields with {{{record.fieldName}}} notation; a grouped
1797
+ (array) record binds as `rows` instead — {{{rows.0.fieldName}}} / {{#each rows}}
1798
+ - Write a substitution that outputs a value with triple braces. Double braces
1799
+ HTML-escape what they output — a field and a helper's result alike: `O'Brien`
1800
+ is written as `O&#x27;Brien` and `A&B` as `A&amp;B`. Block tags (`{{#if}}`,
1801
+ `{{else}}`, `{{/if}}`) keep double braces
1802
+ - Examples: "{{{record.firstName}}} {{{record.lastName}}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
1782
1803
  - Valid on scalars and on `object` rows, where the rendered output must
1783
1804
  parse into an object. On an array row the template goes in a
1784
1805
  `buildArrayHelper` entry instead: on an `objectarray` row's own
@@ -1788,7 +1809,7 @@ components:
1788
1809
  error
1789
1810
 
1790
1811
  ```json
1791
- "extract": "{{record.price}} {{record.currency}}" // Combines two fields
1812
+ "extract": "{{{record.price}}} {{{record.currency}}}" // Combines two fields
1792
1813
  ```
1793
1814
 
1794
1815
  **3. Hard-Coded Value (literal string)**
@@ -1844,9 +1865,9 @@ components:
1844
1865
  [{"extract": "$[*].field"}]`; an `objectarray` uses
1845
1866
  `buildArrayHelper: [{"extract": "$[*]", "mappings": [...]}]`
1846
1867
  with the children addressing the row relatively (`$.field`,
1847
- `{{rows.field}}`). An `extract` placed directly on the
1868
+ `{{{rows.field}}}`). An `extract` placed directly on the
1848
1869
  array-typed field yields nothing. Handlebars
1849
- extracts bind the array record as `rows` (`{{rows.0.field}}`),
1870
+ extracts bind the array record as `rows` (`{{{rows.0.field}}}`),
1850
1871
  an object record as `record`. The reverse holds too: `$[*]` on
1851
1872
  an object record iterates the object's values, not rows.
1852
1873
  - |-
@@ -1868,9 +1889,22 @@ components:
1868
1889
  - **Use a lookup** (`lookupName` + a small `lookups` entry)
1869
1890
  for value translation that would otherwise need a long
1870
1891
  `{{#if ...}}{{else if ...}}` chain.
1892
+ - |-
1893
+ ## TRIPLE BRACES FOR VALUES
1894
+ A substitution that outputs a value is written with triple
1895
+ braces. With double braces the mapper HTML-escapes the output —
1896
+ `&`, `<`, `>`, `"` and `'` become `&amp;`, `&lt;`, `&gt;`,
1897
+ `&quot;` and `&#x27;` — for a field (`{{record.name}}`), for a
1898
+ helper's result (`{{uppercase record.name}}`, `{{join ", "
1899
+ record.tags}}`) and inside a block (`{{#if
1900
+ record.name}}{{record.name}}{{/if}}`), with no error: the
1901
+ destination receives `O&#x27;Brien` for `O'Brien`. The same
1902
+ expressions with triple braces (`{{{record.name}}}`, `{{{uppercase
1903
+ record.name}}}`) and a JSONPath extract (`$.name`) write the value
1904
+ unchanged. Transformation 2.0 rules behave the same.
1871
1905
  examples:
1872
1906
  - $.fullName
1873
- - '{{record.fullName}}'
1907
+ - '{{{record.fullName}}}'
1874
1908
  - primary
1875
1909
  - $.lineItems[*].unitPrice
1876
1910
  extractDateFormat:
@@ -3273,9 +3307,9 @@ components:
3273
3307
  the envelope shape on purpose.
3274
3308
  - |-
3275
3309
  Handlebars expressions inside `extract` reference the
3276
- `record` root on an object record (`{{record.field}}`,
3277
- `{{dateFormat ... record.field}}`) and `rows` on a
3278
- grouped one (`{{rows.0.field}}`), regardless of
3310
+ `record` root on an object record (`{{{record.field}}}`,
3311
+ `{{{dateFormat ... record.field}}}`) and `rows` on a
3312
+ grouped one (`{{{rows.0.field}}}`), regardless of
3279
3313
  `inputContext` — only JSONPath anchoring flips.
3280
3314
  - |-
3281
3315
  ## Grouped records
@@ -3287,7 +3321,7 @@ components:
3287
3321
  `$.rows[*]` whose children read `$.rows.field` — while
3288
3322
  `$.record[0].field` and `$.record[*]` resolve nothing,
3289
3323
  with no error (live, 2026-10-30). Handlebars extracts
3290
- read it as `rows` in both modes (`{{rows.0.field}}`).
3324
+ read it as `rows` in both modes (`{{{rows.0.field}}}`).
3291
3325
  - |-
3292
3326
  In `envelope` mode the output is still a bare record: a
3293
3327
  `modify` transform returns the record with its mapped
@@ -3336,10 +3370,10 @@ components:
3336
3370
  ## Handlebars expressions are NOT affected
3337
3371
 
3338
3372
  Handlebars expressions inside ``extract``
3339
- (``{{record.field}}``,
3340
- ``{{dateFormat ... record.field}}``, etc.) reference the
3373
+ (``{{{record.field}}}``,
3374
+ ``{{{dateFormat ... record.field}}}``, etc.) reference the
3341
3375
  runtime context's ``record`` root on an object record,
3342
- and ``rows`` (``{{rows.0.field}}``) on a grouped one,
3376
+ and ``rows`` (``{{{rows.0.field}}}``) on a grouped one,
3343
3377
  regardless of ``inputContext`` — the Handlebars runtime
3344
3378
  always sees the wrapped envelope. Only JSONPath
3345
3379
  behavior flips with this field.
@@ -3363,7 +3397,7 @@ components:
3363
3397
  source file: ``fileName``, ``fileSize``, and
3364
3398
  ``lastModifiedTime`` (epoch milliseconds). Reach it
3365
3399
  as ``$.fileMeta.<field>`` in envelope mode, or as
3366
- ``{{fileMeta.<field>}}`` from a Handlebars extract in
3400
+ ``{{{fileMeta.<field>}}}`` from a Handlebars extract in
3367
3401
  either mode. The keys are exactly these three —
3368
3402
  lowercase variants such as ``filesize`` or
3369
3403
  ``filename`` resolve empty. The standalone transform