Skip to content

Commit 4c8dd3b

Browse files
committed
more compact
1 parent a0d47c8 commit 4c8dd3b

File tree

1 file changed

+28
-84
lines changed

1 file changed

+28
-84
lines changed

services/static-webserver/client/source/resource/schemas/product-ui.json

Lines changed: 28 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,9 @@
77
"items": {
88
"type": "object",
99
"properties": {
10-
"id": {
11-
"type": "string"
12-
},
13-
"title": {
14-
"type": "string"
15-
},
16-
"description": {
17-
"type": "string"
18-
}
10+
"id": { "type": "string" },
11+
"title": { "type": "string" },
12+
"description": { "type": "string" }
1913
},
2014
"required": ["id", "title"]
2115
}
@@ -27,75 +21,37 @@
2721
{
2822
"type": "object",
2923
"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-
}
24+
"resourceType": { "const": "study" },
25+
"title": { "type": "string" },
26+
"icon": { "type": "string" },
27+
"newStudyLabel": { "type": "string" },
28+
"idToWidget": { "type": "string" }
4529
},
4630
"required": ["resourceType", "title"]
4731
},
4832
{
4933
"type": "object",
5034
"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-
}
35+
"resourceType": { "const": "template" },
36+
"expectedTemplateLabel": { "type": "string" },
37+
"title": { "type": "string" },
38+
"icon": { "type": "string" },
39+
"newStudyLabel": { "type": "string" },
40+
"category": { "type": "string" },
41+
"idToWidget": { "type": "string" }
7242
},
7343
"required": ["resourceType", "expectedTemplateLabel", "title"]
7444
},
7545
{
7646
"type": "object",
7747
"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-
}
48+
"resourceType": { "const": "service" },
49+
"expectedKey": { "type": "string" },
50+
"title": { "type": "string" },
51+
"icon": { "type": "string" },
52+
"newStudyLabel": { "type": "string" },
53+
"category": { "type": "string" },
54+
"idToWidget": { "type": "string" }
9955
},
10056
"required": ["resourceType", "expectedKey", "title"]
10157
},
@@ -106,24 +62,12 @@
10662
"type": "boolean",
10763
"const": true
10864
},
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-
}
65+
"title": { "type": "string" },
66+
"icon": { "type": "string" },
67+
"reason": { "type": "string" },
68+
"newStudyLabel": { "type": "string" },
69+
"category": { "type": "string" },
70+
"idToWidget": { "type": "string" }
12771
},
12872
"required": ["showDisabled", "title"]
12973
}

0 commit comments

Comments
 (0)