-
Notifications
You must be signed in to change notification settings - Fork 0
/
transform.yml
50 lines (50 loc) · 1.3 KB
/
transform.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# $id: git://github.com/rivethealth/db-slice/schema.json
$schema: http://json-schema.org/draft/2019-09/schema#
description: Definition of transform
title: Transform definition
definitions:
column:
description: Column
title: Column
type: string
table:
description: Table
properties:
columns:
additionalProperties: { $ref: "#/definitions/column" }
description: Columns. Omitted columns are left untouched.
title: Columns
type: object
title: Table
type: object
transform:
description: Transform
properties:
class:
description: Class name.
title: Class
type: string
config:
default: null
description: Configuration given to transform
title: Configuration
module:
default: "slice_db.transforms"
description: Module name.
title: Module
type: string
required: [class]
title: Transform
properties:
tables:
additionalProperties: { $ref: "#/definitions/table" }
description: Tables. Omitted tables are left untouched.
title: Tables
type: object
transforms:
additionalProperties: { $ref: "#/definitions/transform" }
description: Transforms.
title: Transforms
type: object
required: [tables, transforms]
type: object