-
Notifications
You must be signed in to change notification settings - Fork 6
/
schema.js
53 lines (51 loc) · 877 Bytes
/
schema.js
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
51
52
53
export const nodesSchema = {
name: {
prop: 'name',
type: String,
required: true
},
type: {
prop: 'type',
type: String,
required: true
},
color: {
prop: 'color',
type: String
}
}
export const linksSchema = {
source: {
prop: 'source',
type: String,
required: true
},
target: {
prop: 'target',
type: String,
required: true
},
value: {
prop: 'value',
type: Number,
required: true
},
color: {
prop: 'color',
type: String
}
}
export const metadataSchema = {
header: {
prop: 'header',
type: String
},
currency: {
prop: 'currency',
type: String
},
abbreviation: {
prop: 'abbreviation',
type: String
}
}