Skip to content

Commit f1e84e2

Browse files
committed
product_ui schema
1 parent 5f92eca commit f1e84e2

File tree

1 file changed

+134
-0
lines changed

1 file changed

+134
-0
lines changed
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"type": "object",
4+
"properties": {
5+
"categories": {
6+
"type": "array",
7+
"items": {
8+
"type": "object",
9+
"properties": {
10+
"id": {
11+
"type": "string"
12+
},
13+
"title": {
14+
"type": "string"
15+
},
16+
"description": {
17+
"type": "string"
18+
}
19+
},
20+
"required": ["id", "title"]
21+
}
22+
},
23+
"resources": {
24+
"type": "array",
25+
"items": {
26+
"oneOf": [
27+
{
28+
"type": "object",
29+
"properties": {
30+
"resourceType": {
31+
"const": "study"
32+
},
33+
"title": {
34+
"type": "string"
35+
},
36+
"icon": {
37+
"type": "string"
38+
},
39+
"newStudyLabel": {
40+
"type": "string"
41+
},
42+
"idToWidget": {
43+
"type": "string"
44+
}
45+
},
46+
"required": ["resourceType", "title"]
47+
},
48+
{
49+
"type": "object",
50+
"properties": {
51+
"resourceType": {
52+
"const": "template"
53+
},
54+
"expectedTemplateLabel": {
55+
"type": "string"
56+
},
57+
"title": {
58+
"type": "string"
59+
},
60+
"icon": {
61+
"type": "string"
62+
},
63+
"newStudyLabel": {
64+
"type": "string"
65+
},
66+
"category": {
67+
"type": "string"
68+
},
69+
"idToWidget": {
70+
"type": "string"
71+
}
72+
},
73+
"required": ["resourceType", "expectedTemplateLabel", "title"]
74+
},
75+
{
76+
"type": "object",
77+
"properties": {
78+
"resourceType": {
79+
"const": "service"
80+
},
81+
"expectedKey": {
82+
"type": "string"
83+
},
84+
"title": {
85+
"type": "string"
86+
},
87+
"icon": {
88+
"type": "string"
89+
},
90+
"newStudyLabel": {
91+
"type": "string"
92+
},
93+
"category": {
94+
"type": "string"
95+
},
96+
"idToWidget": {
97+
"type": "string"
98+
}
99+
},
100+
"required": ["resourceType", "expectedKey", "title"]
101+
},
102+
{
103+
"type": "object",
104+
"properties": {
105+
"showDisabled": {
106+
"type": "boolean",
107+
"const": true
108+
},
109+
"title": {
110+
"type": "string"
111+
},
112+
"icon": {
113+
"type": "string"
114+
},
115+
"reason": {
116+
"type": "string"
117+
},
118+
"newStudyLabel": {
119+
"type": "string"
120+
},
121+
"category": {
122+
"type": "string"
123+
},
124+
"idToWidget": {
125+
"type": "string"
126+
}
127+
},
128+
"required": ["showDisabled", "title"]
129+
}
130+
]
131+
}
132+
}
133+
}
134+
}

0 commit comments

Comments
 (0)