@celigo/api-specs 0.2.243 → 0.2.244
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/api.yml +113 -15
- package/package.json +1 -1
- package/schemas.json +6 -2
package/dist/api.yml
CHANGED
|
@@ -514,6 +514,7 @@ paths:
|
|
|
514
514
|
| `/name` | API display name |
|
|
515
515
|
| `/description` | API description |
|
|
516
516
|
| `/disabled` | Enable or disable the API (boolean) |
|
|
517
|
+
| `/isSchemaValidationActive` | Turn schema validation on or off (boolean; absent means off) |
|
|
517
518
|
| `/timeoutPeriod` | Request-timeout override in seconds |
|
|
518
519
|
| `/pagination/enabled` | Enable or disable cursor pagination (boolean; builder-mode only — a script-mode API fails with `422` code `api_pagination_builder_only`, and enabling re-runs the volume-driver checks described on `pagination.enabled`) |
|
|
519
520
|
| `/logging/mode` | Logging level for requests handled by this API |
|
|
@@ -1703,6 +1704,12 @@ paths:
|
|
|
1703
1704
|
Test runs never paginate, whatever `pagination.enabled` says: the captured success
|
|
1704
1705
|
response carries no `pagination` object, and a `Celigo-Next-Cursor` entry in
|
|
1705
1706
|
`mockRequest.headers` is not validated — a malformed value does not fail the run.
|
|
1707
|
+
|
|
1708
|
+
When `isSchemaValidationActive` is true, a request that fails `bodySchema` or a
|
|
1709
|
+
required query parameter returns `400` `errors[]`
|
|
1710
|
+
(`request_body_schema_validation_failed`, `request_query_param_required`, or
|
|
1711
|
+
`body_schema_not_compilable`). A response that fails its `bodySchema` stays
|
|
1712
|
+
`200`. Those errors are on the response step, and `flowJob.numError` counts them.
|
|
1706
1713
|
parameters:
|
|
1707
1714
|
- name: _id
|
|
1708
1715
|
in: path
|
|
@@ -5670,23 +5677,70 @@ components:
|
|
|
5670
5677
|
description: Description of the parameter
|
|
5671
5678
|
examples:
|
|
5672
5679
|
- Maximum number of records to return
|
|
5680
|
+
required:
|
|
5681
|
+
type: boolean
|
|
5682
|
+
description: |-
|
|
5683
|
+
When true and `isSchemaValidationActive` is on, the parameter
|
|
5684
|
+
must be present and non-empty. Absent means optional.
|
|
5685
|
+
examples:
|
|
5686
|
+
- true
|
|
5687
|
+
schemaMode:
|
|
5688
|
+
type: string
|
|
5689
|
+
enum:
|
|
5690
|
+
- manual
|
|
5691
|
+
- json
|
|
5692
|
+
x-enumDescriptions:
|
|
5693
|
+
manual: Last edited on the Manual tab.
|
|
5694
|
+
json: Last edited on the Schema tab. Set this when creating the API from Postman or an agent.
|
|
5695
|
+
description: |-
|
|
5696
|
+
Editor tab that last saved `bodySchema`. Does not turn validation on.
|
|
5697
|
+
Set to `json` when creating or updating the API from Postman or an agent.
|
|
5698
|
+
examples:
|
|
5699
|
+
- json
|
|
5700
|
+
x-celigo-ai-guidance:
|
|
5701
|
+
- |-
|
|
5702
|
+
Set `schemaMode` to `json` on `builder.request` and on every `builder.responses[]`
|
|
5703
|
+
entry when you create or update the API from Postman or an agent. `manual` is only
|
|
5704
|
+
for a save from the API Builder Manual tab.
|
|
5673
5705
|
bodySchema:
|
|
5674
5706
|
type: object
|
|
5675
5707
|
description: |-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
API Builder to render it; omit this field when the endpoint has no
|
|
5679
|
-
body contract.
|
|
5708
|
+
Request body schema as an OpenAPI 3.0.3 Schema Object.
|
|
5709
|
+
Omit when the endpoint has no body.
|
|
5680
5710
|
additionalProperties: true
|
|
5681
5711
|
examples:
|
|
5682
5712
|
- type: object
|
|
5713
|
+
required:
|
|
5714
|
+
- orderId
|
|
5715
|
+
- lines
|
|
5683
5716
|
properties:
|
|
5684
|
-
|
|
5717
|
+
orderId:
|
|
5685
5718
|
type: string
|
|
5686
|
-
|
|
5719
|
+
description: Publisher order id.
|
|
5720
|
+
pattern: ^ORD-[0-9]{6}$
|
|
5721
|
+
minLength: 10
|
|
5722
|
+
qty:
|
|
5723
|
+
type: integer
|
|
5724
|
+
minimum: 0
|
|
5725
|
+
exclusiveMinimum: true
|
|
5726
|
+
channel:
|
|
5687
5727
|
type: string
|
|
5688
|
-
|
|
5728
|
+
enum:
|
|
5729
|
+
- web
|
|
5730
|
+
lines:
|
|
5731
|
+
type: array
|
|
5732
|
+
items:
|
|
5733
|
+
type: object
|
|
5734
|
+
required:
|
|
5735
|
+
- sku
|
|
5736
|
+
properties:
|
|
5737
|
+
sku:
|
|
5738
|
+
type: string
|
|
5739
|
+
minLength: 1
|
|
5689
5740
|
x-celigo-ai-guidance:
|
|
5741
|
+
- |-
|
|
5742
|
+
`required` means the property must be present. An empty string,
|
|
5743
|
+
whitespace, 0, false, an empty array, and an empty object pass.
|
|
5690
5744
|
- |-
|
|
5691
5745
|
Every object-typed schema node — the root, a nested property, or an
|
|
5692
5746
|
array's `items` — must carry a non-empty `properties` map. The API
|
|
@@ -5768,6 +5822,7 @@ components:
|
|
|
5768
5822
|
- Expected parameters (path, query, headers)
|
|
5769
5823
|
- Request body schema
|
|
5770
5824
|
- Optional request transformation logic
|
|
5825
|
+
When sending `bodySchema`, set `schemaMode` to `json`. Postman and agent creates use `json`, not `manual`.
|
|
5771
5826
|
ResponseMapping:
|
|
5772
5827
|
type: object
|
|
5773
5828
|
description: |
|
|
@@ -6466,24 +6521,59 @@ components:
|
|
|
6466
6521
|
- |-
|
|
6467
6522
|
Array-based DSL where the first element is an operator (e.g., "equals", "and", "or"),
|
|
6468
6523
|
followed by operands which can be nested expressions.
|
|
6524
|
+
schemaMode:
|
|
6525
|
+
type: string
|
|
6526
|
+
enum:
|
|
6527
|
+
- manual
|
|
6528
|
+
- json
|
|
6529
|
+
x-enumDescriptions:
|
|
6530
|
+
manual: Last edited on the Manual tab.
|
|
6531
|
+
json: Last edited on the Schema tab. Set this when creating the API from Postman or an agent.
|
|
6532
|
+
description: |-
|
|
6533
|
+
Editor tab that last saved this response's `bodySchema`. Does not turn validation on.
|
|
6534
|
+
Set to `json` when creating or updating the API from Postman or an agent.
|
|
6535
|
+
examples:
|
|
6536
|
+
- json
|
|
6537
|
+
x-celigo-ai-guidance:
|
|
6538
|
+
- |-
|
|
6539
|
+
Set `schemaMode` to `json` on this response when you create or update the API
|
|
6540
|
+
from Postman or an agent. `manual` is only for a save from the API Builder Manual tab.
|
|
6469
6541
|
bodySchema:
|
|
6470
6542
|
type: object
|
|
6471
|
-
description:
|
|
6472
|
-
JSON Schema describing the response body structure. Every object-typed
|
|
6473
|
-
schema node must declare at least one property for the API Builder to
|
|
6474
|
-
render it; omit this field when the response body has no defined shape.
|
|
6543
|
+
description: Response body schema as an OpenAPI 3.0.3 Schema Object. Omit when the response has no defined shape.
|
|
6475
6544
|
additionalProperties: true
|
|
6476
6545
|
examples:
|
|
6477
6546
|
- type: object
|
|
6547
|
+
required:
|
|
6548
|
+
- id
|
|
6478
6549
|
properties:
|
|
6479
6550
|
id:
|
|
6480
6551
|
type: string
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6552
|
+
description: Created resource id.
|
|
6553
|
+
pattern: ^[A-Z0-9-]{8,}$
|
|
6554
|
+
minLength: 8
|
|
6555
|
+
status:
|
|
6484
6556
|
type: string
|
|
6485
|
-
|
|
6557
|
+
enum:
|
|
6558
|
+
- created
|
|
6559
|
+
qty:
|
|
6560
|
+
type: integer
|
|
6561
|
+
minimum: 0
|
|
6562
|
+
exclusiveMinimum: true
|
|
6563
|
+
lines:
|
|
6564
|
+
type: array
|
|
6565
|
+
items:
|
|
6566
|
+
type: object
|
|
6567
|
+
required:
|
|
6568
|
+
- sku
|
|
6569
|
+
properties:
|
|
6570
|
+
sku:
|
|
6571
|
+
type: string
|
|
6572
|
+
minLength: 1
|
|
6486
6573
|
x-celigo-ai-guidance:
|
|
6574
|
+
- |-
|
|
6575
|
+
`required` means the property must be present. An empty string,
|
|
6576
|
+
whitespace, 0, false, an empty array, and an empty object pass.
|
|
6487
6577
|
- |-
|
|
6488
6578
|
Every object-typed schema node — the root, a nested property, or an
|
|
6489
6579
|
array's `items` — must carry a non-empty `properties` map. The API
|
|
@@ -6673,6 +6763,7 @@ components:
|
|
|
6673
6763
|
- Exactly one 'success' response (for successful operations)
|
|
6674
6764
|
- Exactly one 'fail' response (for errors)
|
|
6675
6765
|
- Zero or more 'custom' responses (for specific scenarios)
|
|
6766
|
+
When sending `bodySchema`, set `schemaMode` to `json`. Postman and agent creates use `json`, not `manual`.
|
|
6676
6767
|
The response router returns the first response whose `inputFilter` matches, and a
|
|
6677
6768
|
response without one matches every request, so list the 'custom' responses ahead of
|
|
6678
6769
|
'success'.
|
|
@@ -6829,6 +6920,13 @@ components:
|
|
|
6829
6920
|
description: When true, the API rejects all incoming requests.
|
|
6830
6921
|
examples:
|
|
6831
6922
|
- false
|
|
6923
|
+
isSchemaValidationActive:
|
|
6924
|
+
type: boolean
|
|
6925
|
+
description: |-
|
|
6926
|
+
When true, runtime validates the request and response body schemas
|
|
6927
|
+
and required query parameters. Absent means off.
|
|
6928
|
+
examples:
|
|
6929
|
+
- false
|
|
6832
6930
|
failOnOfflineConnection:
|
|
6833
6931
|
type: boolean
|
|
6834
6932
|
description: |-
|
package/package.json
CHANGED
package/schemas.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"provenance": {
|
|
3
3
|
"repo": "celigo/integrator-api-specs",
|
|
4
|
-
"iasCommit": "
|
|
4
|
+
"iasCommit": "25e37f7b",
|
|
5
5
|
"generatedAt": "2026-11-06"
|
|
6
6
|
},
|
|
7
7
|
"roots": {
|
|
@@ -1735,6 +1735,7 @@
|
|
|
1735
1735
|
"pathParams": 160,
|
|
1736
1736
|
"queryParams": 163,
|
|
1737
1737
|
"relativeURI": 0,
|
|
1738
|
+
"schemaMode": 34,
|
|
1738
1739
|
"transform": 171
|
|
1739
1740
|
},
|
|
1740
1741
|
"r": [
|
|
@@ -1786,7 +1787,8 @@
|
|
|
1786
1787
|
"p": {
|
|
1787
1788
|
"dataType": 161,
|
|
1788
1789
|
"description": 0,
|
|
1789
|
-
"key": 0
|
|
1790
|
+
"key": 0,
|
|
1791
|
+
"required": 8
|
|
1790
1792
|
}
|
|
1791
1793
|
},
|
|
1792
1794
|
{
|
|
@@ -2083,6 +2085,7 @@
|
|
|
2083
2085
|
"mappings": 202,
|
|
2084
2086
|
"mockInput": 200,
|
|
2085
2087
|
"name": 0,
|
|
2088
|
+
"schemaMode": 34,
|
|
2086
2089
|
"statusCode": 120,
|
|
2087
2090
|
"type": 195
|
|
2088
2091
|
}
|
|
@@ -2265,6 +2268,7 @@
|
|
|
2265
2268
|
"draftExpiresAt": 0,
|
|
2266
2269
|
"failOnOfflineConnection": 8,
|
|
2267
2270
|
"function": 0,
|
|
2271
|
+
"isSchemaValidationActive": 8,
|
|
2268
2272
|
"lastModified": 0,
|
|
2269
2273
|
"logging": 153,
|
|
2270
2274
|
"name": 0,
|