Skip to content

Commit 97c4620

Browse files
committed
Release v3.2.0
ref: 01993abb88da3257a637839066e2110391a79c14
1 parent 9bf4225 commit 97c4620

File tree

10 files changed

+9338
-0
lines changed

10 files changed

+9338
-0
lines changed

schema/businessapp.json

Lines changed: 2186 additions & 0 deletions
Large diffs are not rendered by default.

schema/catalog.json

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "catalog",
4+
"type": "object",
5+
"description": "Catalogs define how and what visualizations of apps are grouped in the app-finder",
6+
"required": [
7+
"_version",
8+
"identification",
9+
"payload"
10+
],
11+
"properties": {
12+
"_version": {
13+
"description": "Version of an entity",
14+
"type": "string",
15+
"default": "3.0.0",
16+
"enum": [
17+
"3.2.0",
18+
"3.2",
19+
"3.1.0",
20+
"3.1",
21+
"3.0.1",
22+
"3.0.0",
23+
"3.0"
24+
]
25+
},
26+
"identification": {
27+
"$schema": "http://json-schema.org/draft-07/schema#",
28+
"title": "identification",
29+
"type": "object",
30+
"description": "CDM Identification defines identifiers and other meta attributes which are common for all entities",
31+
"required": [
32+
"id",
33+
"entityType"
34+
],
35+
"properties": {
36+
"title": {
37+
"description": "Title of the entity",
38+
"anyOf": [
39+
{
40+
"type": "string",
41+
"pattern": "^\\{\\{[^\\W][\\w\\.\\-\\|]*\\}\\}$"
42+
},
43+
{
44+
"description": "Fixed, untranslated string in specific language",
45+
"type": "string"
46+
}
47+
]
48+
},
49+
"description": {
50+
"description": "Description of the entity",
51+
"anyOf": [
52+
{
53+
"type": "string",
54+
"pattern": "^\\{\\{[^\\W][\\w\\.\\-\\|]*\\}\\}$"
55+
},
56+
{
57+
"description": "Fixed, untranslated string in specific language",
58+
"type": "string"
59+
}
60+
]
61+
},
62+
"entityType": {
63+
"description": "Type (enumeration) of the entity",
64+
"type": "string",
65+
"enum": [
66+
"group",
67+
"catalog",
68+
"businessapp",
69+
"urltemplate",
70+
"viztype",
71+
"page",
72+
"space",
73+
"workpage",
74+
"site"
75+
]
76+
},
77+
"id": {
78+
"type": "string",
79+
"maxLength": 70,
80+
"pattern": "^[\\w\\-:@+~.#\\/]+$",
81+
"description": "ID of the entity; it needs to be stable over the entire lifecycle of the entity and unique per entity type exposed via the same content channel"
82+
},
83+
"providerId": {
84+
"description": "The parent content provider of the entity",
85+
"type": "string",
86+
"maxLength": 128,
87+
"pattern": "^[\\w\\-:@+~.#\\/]+$"
88+
},
89+
"i18n": {
90+
"type": "string"
91+
},
92+
"softComponent": {
93+
"type": "string"
94+
}
95+
},
96+
"definitions": {}
97+
},
98+
"payload": {
99+
"type": "object",
100+
"required": [
101+
"viz"
102+
],
103+
"properties": {
104+
"viz": {
105+
"description": "a list of the assigned app visualizations",
106+
"type": "array",
107+
"items": {
108+
"type": "object",
109+
"required": [
110+
"appId",
111+
"vizId"
112+
],
113+
"additionalProperties": false,
114+
"properties": {
115+
"id": {
116+
"type": "string",
117+
"maxLength": 70,
118+
"pattern": "^[\\w\\-:@+~.#\\/]+$"
119+
},
120+
"appId": {
121+
"type": "string",
122+
"maxLength": 70,
123+
"pattern": "^[\\w\\-:@+~.#\\/]+$"
124+
},
125+
"vizId": {
126+
"type": "string",
127+
"maxLength": 70,
128+
"pattern": "^[\\w\\-:@+~.#\\/]+$"
129+
}
130+
}
131+
}
132+
}
133+
}
134+
},
135+
"texts": {
136+
"$schema": "http://json-schema.org/draft-07/schema#",
137+
"title": "texts",
138+
"type": "array",
139+
"description": "CDM Design Time - Entity Texts",
140+
"items": {
141+
"type": "object",
142+
"description": "Contains translation dictionary of a specific locale",
143+
"properties": {
144+
"locale": {
145+
"type": "string",
146+
"description": "The locale of the specific translated dictionary",
147+
"pattern": "^((?:[A-Za-z]{2,3}(?:[-_][A-Za-z]{3}){0,3})?|[A-Za-z]{4}|[A-Za-z]{5,8})(?:[-_]([A-Za-z]{4}))?(?:[-_]([A-Za-z]{2}|[0-9]{3}))?((?:[-_][0-9A-Za-z]{5,8}|[-_][0-9][0-9A-Za-z]{3})*)((?:[-_][0-9A-WYZa-wyz](?:[-_][0-9A-Za-z]{2,8})+)*)(?:[-_]([Xx](?:[-_][0-9A-Za-z]{1,8})+))?([-_][\\w]+)?$"
148+
},
149+
"textDictionary": {
150+
"type": "object",
151+
"patternProperties": {
152+
"^[\\w\\W]*$": {
153+
"type": "string",
154+
"description": "The translated string value"
155+
}
156+
}
157+
}
158+
}
159+
},
160+
"definitions": {}
161+
}
162+
}
163+
}

0 commit comments

Comments
 (0)