@celigo/api-specs 0.2.280 → 0.2.281

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/flow.yml CHANGED
@@ -5148,9 +5148,22 @@ components:
5148
5148
  flow-error notification email was not sent, and do not suggest turning it off to test
5149
5149
  email delivery.
5150
5150
  - |-
5151
- A record that continues past its failure arrives at later steps without the fields
5152
- this step's response mapping would have added; `hooks.postResponseMap` documents the
5153
- shape it has there.
5151
+ A record that continues past its failure arrives at later steps WITH the fields its
5152
+ response mapping extracts from the failure envelope: `statusCode` (422 — the platform's
5153
+ verdict on the record, not the HTTP status the destination answered, which is in
5154
+ `errors[].code`) and `errors` (an array) are present; `id` is present only when the
5155
+ import's id path resolves on the reply the destination sent. Verified live 2026-11-10 in
5156
+ flow runs of an HTTP import with `proceedOnFailure: true` and `id` / `statusCode` /
5157
+ `errors` mapped: a record failed by `failPath` on a 200 echo body reached the next
5158
+ router carrying `statusCode` 422, `errors` and the `id` read from that body; records
5159
+ answered a real 404 carried `statusCode` 422 and `errors` and no `id`; written records
5160
+ carried the destination's status (200 in these runs) and no `errors`. So a router after
5161
+ the step picks out the failed records with a rule on the mapped `statusCode` equal to
5162
+ 422 (or `errors` not empty) and lets every other record take the other branch —
5163
+ written records, and records the import's input filter skipped, which continue without
5164
+ any of this step's response-mapped fields and are not failures; a rule on the mapped
5165
+ `id` being empty holds only where the destination assigns an id solely to a record it
5166
+ wrote. `hooks.postResponseMap` documents the shape in that hook.
5154
5167
  responseMapping:
5155
5168
  $ref: '#/components/schemas/ResponseMapping'
5156
5169
  hooks:
@@ -5164,10 +5177,11 @@ components:
5164
5177
  `options.postResponseMapData` (the records, with response mapping applied) and
5165
5178
  `options.responseData` (the step's per-record results, in the same order) and returns
5166
5179
  `postResponseMapData`, same length. A record an import step failed is in neither array
5167
- unless `proceedOnFailure` is true. Then it is included, without the fields response
5168
- mapping would have added, and its `responseData` entry has `statusCode` 422 and
5169
- `errors` as an object keyed by index (`"0"`, `"1"`, ...) rather than an array. A
5170
- successful entry has no `errors`. An error this hook raises is stored at retry
5180
+ unless `proceedOnFailure` is true. Then it is included — carrying the fields its
5181
+ response mapping extracted from the failure envelope (`statusCode` 422 and `errors`;
5182
+ `id` only when the id path resolves on the destination's reply) — and its
5183
+ `responseData` entry has `statusCode` 422 and `errors` as an object keyed by index
5184
+ (`"0"`, `"1"`, ...) rather than an array. A successful entry has no `errors`. An error this hook raises is stored at retry
5171
5185
  stage `post_response_mapping`: a retry runs the hook again on the saved record (as
5172
5186
  response mapping left it) and the step's stored reply, without repeating the lookup
5173
5187
  or the destination request.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.280",
3
+ "version": "0.2.281",
4
4
  "private": false,
5
5
  "description": "Public OpenAPI bundles (dist/) and the celigo-cli lint schema pack (schemas.json).",
6
6
  "keywords": [
package/schemas.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "provenance": {
3
3
  "repo": "celigo/integrator-api-specs",
4
- "iasCommit": "a569db90",
4
+ "iasCommit": "e34e8601",
5
5
  "generatedAt": "2026-11-10"
6
6
  },
7
7
  "roots": {