You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: The list of validations that will be performed on the incoming config before starting a sync
3828
+
type: array
3829
+
items:
3830
+
anyOf:
3831
+
- "$ref": "#/definitions/DpathValidator"
3832
+
- "$ref": "#/definitions/PredicateValidator"
3806
3833
SubstreamPartitionRouter:
3807
3834
title: Substream Partition Router
3808
3835
description: Partition router that is used to retrieve records that have been partitioned according to records from the specified parent streams. An example of a parent stream is automobile brands and the substream would be the various car models associated with each branch.
@@ -4164,6 +4191,159 @@ definitions:
4164
4191
description: The GraphQL query to be executed
4165
4192
default: {}
4166
4193
additionalProperties: true
4194
+
DpathValidator:
4195
+
title: Dpath Validator
4196
+
description: Validator that extracts the value located at a given field path.
4197
+
type: object
4198
+
required:
4199
+
- type
4200
+
- field_path
4201
+
- validation_strategy
4202
+
properties:
4203
+
type:
4204
+
type: string
4205
+
enum: [ DpathValidation ]
4206
+
field_path:
4207
+
title: Field Path
4208
+
description: List of potentially nested fields describing the full path of the field to validate. Use "*" to validate all values from an array.
4209
+
type: array
4210
+
items:
4211
+
type: string
4212
+
interpolation_context:
4213
+
- config
4214
+
examples:
4215
+
- [ "data" ]
4216
+
- [ "data", "records" ]
4217
+
- [ "data", "{{ parameters.name }}" ]
4218
+
- [ "data", "*", "record" ]
4219
+
validation_strategy:
4220
+
title: Validation Stragey
4221
+
description: The condition that the specified config value will be evaluated against
4222
+
anyOf:
4223
+
- "$ref": "#/definitions/ValidateAdheresToSchema"
4224
+
PredicateValidator:
4225
+
title: Predicate Validator
4226
+
description: Validator that applies a validation strategy to a specified value.
4227
+
type: object
4228
+
required:
4229
+
- type
4230
+
- value
4231
+
- validation_strategy
4232
+
properties:
4233
+
type:
4234
+
type: string
4235
+
enum: [PredicateValidator]
4236
+
value:
4237
+
title: Value
4238
+
description: The value to be validated. Can be a literal value or interpolated from configuration.
4239
+
type:
4240
+
- string
4241
+
- number
4242
+
- object
4243
+
- array
4244
+
- boolean
4245
+
- "null"
4246
+
interpolation_context:
4247
+
- config
4248
+
examples:
4249
+
- "test-value"
4250
+
- "{{ config['api_version'] }}"
4251
+
- "{{ config['tenant_id'] }}"
4252
+
- 123
4253
+
validation_strategy:
4254
+
title: Validation Strategy
4255
+
description: The validation strategy to apply to the value.
4256
+
anyOf:
4257
+
- "$ref": "#/definitions/ValidateAdheresToSchema"
4258
+
ValidateAdheresToSchema:
4259
+
title: Validate Adheres To Schema
4260
+
description: Validates that a user-provided schema adheres to a specified JSON schema.
description: Transformation that remaps a field's value to another value based on a static map.
4315
+
type: object
4316
+
required:
4317
+
- type
4318
+
- map
4319
+
- field_path
4320
+
properties:
4321
+
type:
4322
+
type: string
4323
+
enum: [RemapField]
4324
+
map:
4325
+
title: Value Mapping
4326
+
description: A mapping of original values to new values. When a field value matches a key in this map, it will be replaced with the corresponding value.
4327
+
type:
4328
+
- object
4329
+
- string
4330
+
additionalProperties: true
4331
+
examples:
4332
+
- pending: "in_progress"
4333
+
done: "completed"
4334
+
cancelled: "terminated"
4335
+
- "{{ config['status_mapping'] }}"
4336
+
field_path:
4337
+
title: Field Path
4338
+
description: The path to the field whose value should be remapped. Specified as a list of path components to navigate through nested objects.
0 commit comments