-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsp-databinder-config-schema.json
91 lines (91 loc) · 3.26 KB
/
sp-databinder-config-schema.json
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "http://did-c.com/schemas/sp-databinder-config-schema.json",
"type": "object",
"properties": {
"base_url": {
"type": "string"
},
"lists": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"config": {
"$ref": "#/definitions/config"
},
"config_trans": {
"$ref": "./objecttranslation-schema.json"
}
},
"required":[ "key", "config" ]
}
}
},
"additionalProperties": true,
"definitions": {
"config": {
"type": "object",
"properties": {
"child_lists": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"parent_field": {
"type": "string"
},
"child_config" : {
"$ref": "#/definitions/config"
},
"child_config_trans": {
"$ref": "./objecttranslation-schema.json"
}
},
"required":[ "parent_field", "child_config" ]
}
},
"key_field": {
"type": "string"
},
"web_url": {
"type": "string"
},
"list_name": {
"type": "string"
},
"view_name": {
"type": "string"
},
"display_format": {
"type": "string"
},
"display_fields": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"internal_name": {
"type": "string"
},
"display_format": {
"type": "string"
},
"use_language_variants": {
"type": "boolean"
}
},
"required":[ "internal_name" ]
}
}
},
"required":[ "key_field", "list_name", "display_fields" ]
}
}
}