Skip to content

Commit 5edc73b

Browse files
authored
Update initial domain mapping schema (#17)
This updates initial domain mapping schema to include changes done over the last few weeks, including fixing how custom objects are formatted https://app.devrev.ai/devrev/works/ISS-189380
1 parent 1d13b32 commit 5edc73b

File tree

1 file changed

+56
-9
lines changed

1 file changed

+56
-9
lines changed

initial_mappings_schema.yaml

Lines changed: 56 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,26 @@ $defs:
3232
title: airdrop-recipe-create-possible-custom-object-mapping
3333
type: object
3434
airdrop-recipe-create-possible-custom-object-mapping-shard:
35+
discriminator:
36+
mapping:
37+
create_shard: '#/$defs/airdrop-recipe-blueprint-shards-create-request'
38+
propertyName: mode
39+
oneOf:
40+
- $ref: '#/$defs/airdrop-recipe-blueprint-shards-create-request'
3541
properties:
36-
create_shard:
37-
$ref: '#/$defs/airdrop-recipe-blueprint-shards-create-request'
3842
mode:
39-
enum:
40-
- create_shard
41-
type: string
43+
$ref: '#/$defs/airdrop-recipe-create-possible-custom-object-mapping-shard-mode'
44+
required:
45+
- mode
4246
title: airdrop-recipe-create-possible-custom-object-mapping-shard
4347
type: object
48+
airdrop-recipe-create-possible-custom-object-mapping-shard-mode:
49+
description: |
50+
You can either create a fresh shard to use for this mapping, assign an
51+
existing one.
52+
enum:
53+
- create_shard
54+
type: string
4455
airdrop-recipe-create-possible-record-type-mapping:
4556
properties:
4657
devrev_leaf_type:
@@ -91,7 +102,7 @@ $defs:
91102
$ref: '#/$defs/airdrop-recipe-create-possible-custom-object-mapping'
92103
possible_record_type_mappings:
93104
description: |
94-
Stock devrev types to which the external type might be mapped.
105+
Stock DevRev types to which the external type might be mapped.
95106
items:
96107
$ref: '#/$defs/airdrop-recipe-create-possible-record-type-mapping'
97108
type: array
@@ -142,6 +153,30 @@ $defs:
142153
- stock
143154
- synthetic
144155
type: string
156+
airdrop-recipe-fallback:
157+
properties:
158+
type:
159+
$ref: '#/$defs/airdrop-recipe-fallback-type'
160+
value:
161+
description: |
162+
The fallback used for required DevRev fields in case no value is
163+
provided.
164+
required:
165+
- type
166+
- value
167+
title: airdrop-recipe-fallback
168+
type: object
169+
airdrop-recipe-fallback-type:
170+
enum:
171+
- bool
172+
- date
173+
- enum
174+
- float
175+
- int
176+
- rich_text
177+
- text
178+
- timestamp
179+
type: string
145180
airdrop-recipe-filter-typed-reference:
146181
properties:
147182
allowed_types:
@@ -278,6 +313,8 @@ $defs:
278313
primary_external_field, multiple secondary_external_fields, both or
279314
neither.
280315
properties:
316+
fallback:
317+
$ref: '#/$defs/airdrop-recipe-fallback'
281318
forward:
282319
description: |
283320
True if this mapping is used in initial and sync_to_devrev runs.
@@ -441,7 +478,7 @@ $defs:
441478
title: airdrop-recipe-use-fixed-value
442479
type: object
443480
airdrop-recipe-use-fixed-value-value:
444-
description: Pick between a fixed boolean and a fixed devrev enum.
481+
description: Pick between a fixed boolean and a fixed DevRev enum.
445482
enum:
446483
- bool
447484
- enum_value
@@ -464,15 +501,25 @@ properties:
464501
additionalProperties:
465502
$ref: '#/$defs/airdrop-recipe-create-possible-record-type-mappings'
466503
description: |
467-
Possible mappings of record type categories to devrev object types.
504+
Possible mappings of record type categories to DevRev object types.
468505
type: object
469506
record_type_mappings:
470507
additionalProperties:
471508
$ref: '#/$defs/airdrop-recipe-create-possible-record-type-mappings'
472509
description: |
473-
Possible mappings of external record types to devrev object types.
510+
Possible mappings of external record types to DevRev object types.
474511
type: object
475512
type: object
513+
devrev_metadata_version:
514+
description: |
515+
The version of the DevRev metadata on which the offered options are
516+
based.
517+
format: int64
518+
type: integer
519+
format_version:
520+
description: The format version of initial domain mapping.
521+
format: text
522+
type: string
476523
title: airdrop-recipe-initial-domain-mappings-install-request
477524
type: object
478525

0 commit comments

Comments
 (0)