simetra 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +190 -0
- package/README.md +39 -2
- package/dist/compiler/index.d.ts +1896 -0
- package/dist/compiler/index.js +24104 -0
- package/dist/model/index.d.ts +4462 -0
- package/dist/model/index.js +3951 -0
- package/dist/schema/index.d.ts +2872 -0
- package/dist/schema/index.js +10706 -0
- package/package.json +75 -3
- package/schemas/accumulation-registers.schema.json +996 -0
- package/schemas/catalogs.schema.json +1274 -0
- package/schemas/constants.schema.json +327 -0
- package/schemas/custom-tables.schema.json +809 -0
- package/schemas/documents.schema.json +1285 -0
- package/schemas/enumerations.schema.json +121 -0
- package/schemas/event-subscriptions.schema.json +165 -0
- package/schemas/information-registers.schema.json +1202 -0
- package/schemas/pg-enums.schema.json +81 -0
- package/schemas/project.schema.json +693 -0
- package/schemas/rights-sets.schema.json +248 -0
- package/schemas/roles.schema.json +498 -0
- package/schemas/sql-debt.schema.json +23 -0
|
@@ -0,0 +1,1274 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"$schema": {
|
|
6
|
+
"description": "Editor hint: path to the JSON Schema of this file.",
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"id": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"format": "uuid",
|
|
12
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$",
|
|
13
|
+
"description": "Stable lowercase UUID v4 identity of the element. Assigned by tooling at creation and never reused; a rename keeps it."
|
|
14
|
+
},
|
|
15
|
+
"name": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"pattern": "^[A-Z][A-Za-z0-9]*$",
|
|
18
|
+
"description": "Logical object name in PascalCase."
|
|
19
|
+
},
|
|
20
|
+
"physicalName": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"description": "Physical database name. Assigned once at creation and never changed, so a rename emits no DDL. At most 63 bytes in UTF-8."
|
|
24
|
+
},
|
|
25
|
+
"schema": {
|
|
26
|
+
"description": "PostgreSQL schema of the object; the project defaultSchema applies when absent.",
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"scope": {
|
|
30
|
+
"description": "Scope kind of the object, or none to keep it outside any scope. Required when the project declares scope kinds.",
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"title": {
|
|
34
|
+
"description": "Human-readable title of the object.",
|
|
35
|
+
"type": "object",
|
|
36
|
+
"properties": {
|
|
37
|
+
"uk": {
|
|
38
|
+
"description": "Ukrainian text.",
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"en": {
|
|
42
|
+
"description": "English text.",
|
|
43
|
+
"type": "string"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"additionalProperties": false
|
|
47
|
+
},
|
|
48
|
+
"description": {
|
|
49
|
+
"description": "Description of the object.",
|
|
50
|
+
"type": "object",
|
|
51
|
+
"properties": {
|
|
52
|
+
"uk": {
|
|
53
|
+
"description": "Ukrainian text.",
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"en": {
|
|
57
|
+
"description": "English text.",
|
|
58
|
+
"type": "string"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"additionalProperties": false
|
|
62
|
+
},
|
|
63
|
+
"kind": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"const": "Catalog",
|
|
66
|
+
"description": "Metadata kind; always Catalog."
|
|
67
|
+
},
|
|
68
|
+
"kindLabel": {
|
|
69
|
+
"description": "Physical kind label of the object. Assigned once at creation and never changed, so a rename keeps it.",
|
|
70
|
+
"type": "string",
|
|
71
|
+
"minLength": 1
|
|
72
|
+
},
|
|
73
|
+
"role": {
|
|
74
|
+
"description": "System role of the catalog: users marks the users catalog that the platform layer provisions and references; at most one per project, unscoped.",
|
|
75
|
+
"type": "string",
|
|
76
|
+
"const": "users"
|
|
77
|
+
},
|
|
78
|
+
"codeLength": {
|
|
79
|
+
"default": 9,
|
|
80
|
+
"description": "Length of the code attribute; 0 means the catalog has no code.",
|
|
81
|
+
"type": "integer",
|
|
82
|
+
"minimum": 0,
|
|
83
|
+
"maximum": 9007199254740991
|
|
84
|
+
},
|
|
85
|
+
"codeType": {
|
|
86
|
+
"default": "String",
|
|
87
|
+
"description": "Value type of the code attribute.",
|
|
88
|
+
"type": "string",
|
|
89
|
+
"enum": [
|
|
90
|
+
"String",
|
|
91
|
+
"Number"
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
"descriptionLength": {
|
|
95
|
+
"default": 150,
|
|
96
|
+
"description": "Length of the description attribute; 0 means the catalog has no description.",
|
|
97
|
+
"type": "integer",
|
|
98
|
+
"minimum": 0,
|
|
99
|
+
"maximum": 9007199254740991
|
|
100
|
+
},
|
|
101
|
+
"hierarchyType": {
|
|
102
|
+
"default": "None",
|
|
103
|
+
"description": "Hierarchy mode: none, folders and items, or items nested under items.",
|
|
104
|
+
"type": "string",
|
|
105
|
+
"enum": [
|
|
106
|
+
"None",
|
|
107
|
+
"FoldersAndItems",
|
|
108
|
+
"ItemsOnly"
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
"owners": {
|
|
112
|
+
"default": [],
|
|
113
|
+
"description": "Objects that own items of this catalog (subordination).",
|
|
114
|
+
"type": "array",
|
|
115
|
+
"items": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"properties": {
|
|
118
|
+
"kind": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"enum": [
|
|
121
|
+
"Catalog",
|
|
122
|
+
"Document",
|
|
123
|
+
"Enumeration",
|
|
124
|
+
"InformationRegister",
|
|
125
|
+
"AccumulationRegister",
|
|
126
|
+
"Constant",
|
|
127
|
+
"CustomTable",
|
|
128
|
+
"PgEnum",
|
|
129
|
+
"EventSubscription",
|
|
130
|
+
"RightsSet",
|
|
131
|
+
"Role"
|
|
132
|
+
],
|
|
133
|
+
"description": "Kind of the referenced metadata object."
|
|
134
|
+
},
|
|
135
|
+
"name": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"pattern": "^[A-Z][A-Za-z0-9]*$",
|
|
138
|
+
"description": "Logical name of the referenced object."
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"required": [
|
|
142
|
+
"kind",
|
|
143
|
+
"name"
|
|
144
|
+
],
|
|
145
|
+
"additionalProperties": false,
|
|
146
|
+
"description": "Reference to a metadata object by kind and logical name; the compiler resolves it to an id."
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"autonumber": {
|
|
150
|
+
"default": true,
|
|
151
|
+
"description": "Whether the code is generated automatically.",
|
|
152
|
+
"type": "boolean"
|
|
153
|
+
},
|
|
154
|
+
"codeUnique": {
|
|
155
|
+
"default": true,
|
|
156
|
+
"description": "Whether the code must be unique.",
|
|
157
|
+
"type": "boolean"
|
|
158
|
+
},
|
|
159
|
+
"mainPresentation": {
|
|
160
|
+
"default": "Description",
|
|
161
|
+
"description": "Which standard attribute represents an item in lists and references.",
|
|
162
|
+
"type": "string",
|
|
163
|
+
"enum": [
|
|
164
|
+
"Code",
|
|
165
|
+
"Description"
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
"predefinedItems": {
|
|
169
|
+
"default": [],
|
|
170
|
+
"description": "Items that exist in every deployment and are referenced by name.",
|
|
171
|
+
"type": "array",
|
|
172
|
+
"items": {
|
|
173
|
+
"type": "object",
|
|
174
|
+
"properties": {
|
|
175
|
+
"id": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"format": "uuid",
|
|
178
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$",
|
|
179
|
+
"description": "Stable lowercase UUID v4 identity of the element. Assigned by tooling at creation and never reused; a rename keeps it."
|
|
180
|
+
},
|
|
181
|
+
"name": {
|
|
182
|
+
"type": "string",
|
|
183
|
+
"pattern": "^[A-Z][A-Za-z0-9]*$",
|
|
184
|
+
"description": "Logical name of the predefined item."
|
|
185
|
+
},
|
|
186
|
+
"physicalName": {
|
|
187
|
+
"description": "Physical label of the item stored in predefined_name. Assigned once at creation and never changed, so a rename keeps it.",
|
|
188
|
+
"type": "string",
|
|
189
|
+
"minLength": 1
|
|
190
|
+
},
|
|
191
|
+
"description": {
|
|
192
|
+
"description": "Description of the predefined item.",
|
|
193
|
+
"type": "object",
|
|
194
|
+
"properties": {
|
|
195
|
+
"uk": {
|
|
196
|
+
"description": "Ukrainian text.",
|
|
197
|
+
"type": "string"
|
|
198
|
+
},
|
|
199
|
+
"en": {
|
|
200
|
+
"description": "English text.",
|
|
201
|
+
"type": "string"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"additionalProperties": false
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"required": [
|
|
208
|
+
"name"
|
|
209
|
+
],
|
|
210
|
+
"additionalProperties": false
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"trackAuthor": {
|
|
214
|
+
"default": false,
|
|
215
|
+
"description": "Adds the standard createdBy and updatedBy attributes referencing the users catalog; requires a catalog with role users.",
|
|
216
|
+
"type": "boolean"
|
|
217
|
+
},
|
|
218
|
+
"membership": {
|
|
219
|
+
"description": "Marks a scoped catalog as the membership of its scope kind: one member per user and scope value, a generated member lookup and an optional generated scope set function.",
|
|
220
|
+
"type": "object",
|
|
221
|
+
"properties": {
|
|
222
|
+
"user": {
|
|
223
|
+
"type": "string",
|
|
224
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
225
|
+
"description": "Logical name of the scalar Ref attribute to the users catalog; nullable for an invited member without an account."
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"required": [
|
|
229
|
+
"user"
|
|
230
|
+
],
|
|
231
|
+
"additionalProperties": false
|
|
232
|
+
},
|
|
233
|
+
"publicRead": {
|
|
234
|
+
"description": "API role that may read every row of the object: authenticated users or anonymous visitors. Absent means no public read.",
|
|
235
|
+
"type": "string",
|
|
236
|
+
"enum": [
|
|
237
|
+
"authenticated",
|
|
238
|
+
"anon"
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
"customActions": {
|
|
242
|
+
"default": [],
|
|
243
|
+
"description": "Custom actions of the object beyond the standard actions of its kind.",
|
|
244
|
+
"type": "array",
|
|
245
|
+
"items": {
|
|
246
|
+
"type": "object",
|
|
247
|
+
"properties": {
|
|
248
|
+
"id": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"format": "uuid",
|
|
251
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$",
|
|
252
|
+
"description": "Stable lowercase UUID v4 identity of the element. Assigned by tooling at creation and never reused; a rename keeps it."
|
|
253
|
+
},
|
|
254
|
+
"name": {
|
|
255
|
+
"type": "string",
|
|
256
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
257
|
+
"description": "Logical name of the custom action, camelCase like the standard action words; must not repeat a standard action of the kind."
|
|
258
|
+
},
|
|
259
|
+
"requires": {
|
|
260
|
+
"default": [],
|
|
261
|
+
"description": "Actions a holder of this action must also hold: standard action words of the kind or names of custom actions of the same object.",
|
|
262
|
+
"type": "array",
|
|
263
|
+
"items": {
|
|
264
|
+
"type": "string",
|
|
265
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
266
|
+
"description": "Logical element name (attribute, section, column). The casing style is checked against the project naming setting."
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"effects": {
|
|
270
|
+
"default": {},
|
|
271
|
+
"description": "What the action writes itself; an action that writes anything is an update.",
|
|
272
|
+
"type": "object",
|
|
273
|
+
"properties": {
|
|
274
|
+
"header": {
|
|
275
|
+
"description": "Header columns the action writes: all, or logical names of attributes and standard attributes of the object.",
|
|
276
|
+
"anyOf": [
|
|
277
|
+
{
|
|
278
|
+
"type": "string",
|
|
279
|
+
"const": "all"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"type": "array",
|
|
283
|
+
"items": {
|
|
284
|
+
"type": "string",
|
|
285
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
286
|
+
"description": "Logical element name (attribute, section, column). The casing style is checked against the project naming setting."
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
]
|
|
290
|
+
},
|
|
291
|
+
"tabularSections": {
|
|
292
|
+
"description": "Whether the action writes the tabular section rows.",
|
|
293
|
+
"type": "boolean"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"additionalProperties": false
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"required": [
|
|
300
|
+
"name"
|
|
301
|
+
],
|
|
302
|
+
"additionalProperties": false
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
"access": {
|
|
306
|
+
"minItems": 1,
|
|
307
|
+
"type": "array",
|
|
308
|
+
"items": {
|
|
309
|
+
"anyOf": [
|
|
310
|
+
{
|
|
311
|
+
"type": "object",
|
|
312
|
+
"properties": {
|
|
313
|
+
"attribute": {
|
|
314
|
+
"type": "string",
|
|
315
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
316
|
+
"description": "Attribute of this object that references the dimension target."
|
|
317
|
+
},
|
|
318
|
+
"dimension": {
|
|
319
|
+
"type": "string",
|
|
320
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
321
|
+
"description": "Name of a project access dimension."
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
"required": [
|
|
325
|
+
"attribute",
|
|
326
|
+
"dimension"
|
|
327
|
+
],
|
|
328
|
+
"additionalProperties": false
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"type": "object",
|
|
332
|
+
"properties": {
|
|
333
|
+
"ref": {
|
|
334
|
+
"type": "array",
|
|
335
|
+
"prefixItems": [
|
|
336
|
+
{
|
|
337
|
+
"type": "string",
|
|
338
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
339
|
+
"description": "Logical element name (attribute, section, column). The casing style is checked against the project naming setting."
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"type": "string",
|
|
343
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
344
|
+
"description": "Logical element name (attribute, section, column). The casing style is checked against the project naming setting."
|
|
345
|
+
}
|
|
346
|
+
],
|
|
347
|
+
"items": false,
|
|
348
|
+
"minItems": 2,
|
|
349
|
+
"maxItems": 2,
|
|
350
|
+
"description": "Path [attribute, attribute of its target] whose last reference is to the dimension target."
|
|
351
|
+
},
|
|
352
|
+
"dimension": {
|
|
353
|
+
"type": "string",
|
|
354
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
355
|
+
"description": "Name of a project access dimension."
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
"required": [
|
|
359
|
+
"ref",
|
|
360
|
+
"dimension"
|
|
361
|
+
],
|
|
362
|
+
"additionalProperties": false
|
|
363
|
+
}
|
|
364
|
+
]
|
|
365
|
+
},
|
|
366
|
+
"description": "Access dimensions that restrict the rows of this object, each with its carrier."
|
|
367
|
+
},
|
|
368
|
+
"ownership": {
|
|
369
|
+
"description": "Owners of a row: users or members the own extent of a grant opens the row to.",
|
|
370
|
+
"minItems": 1,
|
|
371
|
+
"type": "array",
|
|
372
|
+
"items": {
|
|
373
|
+
"anyOf": [
|
|
374
|
+
{
|
|
375
|
+
"type": "string",
|
|
376
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
377
|
+
"description": "Logical element name (attribute, section, column). The casing style is checked against the project naming setting."
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"type": "array",
|
|
381
|
+
"prefixItems": [
|
|
382
|
+
{
|
|
383
|
+
"type": "string",
|
|
384
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
385
|
+
"description": "Logical element name (attribute, section, column). The casing style is checked against the project naming setting."
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"type": "string",
|
|
389
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
390
|
+
"description": "Logical element name (attribute, section, column). The casing style is checked against the project naming setting."
|
|
391
|
+
}
|
|
392
|
+
],
|
|
393
|
+
"items": false,
|
|
394
|
+
"minItems": 2,
|
|
395
|
+
"maxItems": 2
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
"description": "An attribute of this object, or a path [attribute, attribute of its target]"
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
"containerBinding": {
|
|
402
|
+
"description": "Attribute (or a two-step path of attributes) that binds a row to its rights container: the catalog flagged rightsContainer.",
|
|
403
|
+
"anyOf": [
|
|
404
|
+
{
|
|
405
|
+
"type": "string",
|
|
406
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
407
|
+
"description": "Logical element name (attribute, section, column). The casing style is checked against the project naming setting."
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"type": "array",
|
|
411
|
+
"prefixItems": [
|
|
412
|
+
{
|
|
413
|
+
"type": "string",
|
|
414
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
415
|
+
"description": "Logical element name (attribute, section, column). The casing style is checked against the project naming setting."
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"type": "string",
|
|
419
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
420
|
+
"description": "Logical element name (attribute, section, column). The casing style is checked against the project naming setting."
|
|
421
|
+
}
|
|
422
|
+
],
|
|
423
|
+
"items": false,
|
|
424
|
+
"minItems": 2,
|
|
425
|
+
"maxItems": 2
|
|
426
|
+
}
|
|
427
|
+
]
|
|
428
|
+
},
|
|
429
|
+
"rightsContainer": {
|
|
430
|
+
"description": "Marks the catalog as a rights container: objects bind to its rows with containerBinding, and a grant on the container covers them.",
|
|
431
|
+
"type": "boolean"
|
|
432
|
+
},
|
|
433
|
+
"standardAttributeOverrides": {
|
|
434
|
+
"default": {},
|
|
435
|
+
"description": "Custom titles and descriptions of derived standard attributes, keyed by standard attribute name.",
|
|
436
|
+
"type": "object",
|
|
437
|
+
"propertyNames": {
|
|
438
|
+
"type": "string"
|
|
439
|
+
},
|
|
440
|
+
"additionalProperties": {
|
|
441
|
+
"type": "object",
|
|
442
|
+
"properties": {
|
|
443
|
+
"title": {
|
|
444
|
+
"description": "Overridden title of the standard attribute.",
|
|
445
|
+
"type": "object",
|
|
446
|
+
"properties": {
|
|
447
|
+
"uk": {
|
|
448
|
+
"description": "Ukrainian text.",
|
|
449
|
+
"type": "string"
|
|
450
|
+
},
|
|
451
|
+
"en": {
|
|
452
|
+
"description": "English text.",
|
|
453
|
+
"type": "string"
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
"additionalProperties": false
|
|
457
|
+
},
|
|
458
|
+
"description": {
|
|
459
|
+
"description": "Overridden description of the standard attribute.",
|
|
460
|
+
"type": "object",
|
|
461
|
+
"properties": {
|
|
462
|
+
"uk": {
|
|
463
|
+
"description": "Ukrainian text.",
|
|
464
|
+
"type": "string"
|
|
465
|
+
},
|
|
466
|
+
"en": {
|
|
467
|
+
"description": "English text.",
|
|
468
|
+
"type": "string"
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
"additionalProperties": false
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
"additionalProperties": false
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
"attributes": {
|
|
478
|
+
"default": [],
|
|
479
|
+
"description": "Custom attributes of the catalog.",
|
|
480
|
+
"type": "array",
|
|
481
|
+
"items": {
|
|
482
|
+
"type": "object",
|
|
483
|
+
"properties": {
|
|
484
|
+
"id": {
|
|
485
|
+
"type": "string",
|
|
486
|
+
"format": "uuid",
|
|
487
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$",
|
|
488
|
+
"description": "Stable lowercase UUID v4 identity of the element. Assigned by tooling at creation and never reused; a rename keeps it."
|
|
489
|
+
},
|
|
490
|
+
"name": {
|
|
491
|
+
"type": "string",
|
|
492
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
493
|
+
"description": "Logical element name (attribute, section, column). The casing style is checked against the project naming setting."
|
|
494
|
+
},
|
|
495
|
+
"physicalName": {
|
|
496
|
+
"type": "string",
|
|
497
|
+
"minLength": 1,
|
|
498
|
+
"description": "Physical database name. Assigned once at creation and never changed, so a rename emits no DDL. At most 63 bytes in UTF-8."
|
|
499
|
+
},
|
|
500
|
+
"title": {
|
|
501
|
+
"description": "Human-readable title of the attribute.",
|
|
502
|
+
"type": "object",
|
|
503
|
+
"properties": {
|
|
504
|
+
"uk": {
|
|
505
|
+
"description": "Ukrainian text.",
|
|
506
|
+
"type": "string"
|
|
507
|
+
},
|
|
508
|
+
"en": {
|
|
509
|
+
"description": "English text.",
|
|
510
|
+
"type": "string"
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
"additionalProperties": false
|
|
514
|
+
},
|
|
515
|
+
"description": {
|
|
516
|
+
"description": "Description of the attribute.",
|
|
517
|
+
"type": "object",
|
|
518
|
+
"properties": {
|
|
519
|
+
"uk": {
|
|
520
|
+
"description": "Ukrainian text.",
|
|
521
|
+
"type": "string"
|
|
522
|
+
},
|
|
523
|
+
"en": {
|
|
524
|
+
"description": "English text.",
|
|
525
|
+
"type": "string"
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
"additionalProperties": false
|
|
529
|
+
},
|
|
530
|
+
"type": {
|
|
531
|
+
"type": "string",
|
|
532
|
+
"enum": [
|
|
533
|
+
"UUID",
|
|
534
|
+
"String",
|
|
535
|
+
"Text",
|
|
536
|
+
"Integer",
|
|
537
|
+
"SmallInt",
|
|
538
|
+
"BigInt",
|
|
539
|
+
"Numeric",
|
|
540
|
+
"Boolean",
|
|
541
|
+
"Date",
|
|
542
|
+
"DateTime",
|
|
543
|
+
"Bytes",
|
|
544
|
+
"Json",
|
|
545
|
+
"Ref"
|
|
546
|
+
],
|
|
547
|
+
"description": "Logical value type."
|
|
548
|
+
},
|
|
549
|
+
"length": {
|
|
550
|
+
"description": "Maximum length; required for String and allowed only there.",
|
|
551
|
+
"type": "integer",
|
|
552
|
+
"exclusiveMinimum": 0,
|
|
553
|
+
"maximum": 9007199254740991
|
|
554
|
+
},
|
|
555
|
+
"precision": {
|
|
556
|
+
"description": "Total number of digits; allowed only for Numeric.",
|
|
557
|
+
"type": "integer",
|
|
558
|
+
"exclusiveMinimum": 0,
|
|
559
|
+
"maximum": 9007199254740991
|
|
560
|
+
},
|
|
561
|
+
"scale": {
|
|
562
|
+
"description": "Digits after the decimal point; requires precision.",
|
|
563
|
+
"type": "integer",
|
|
564
|
+
"minimum": 0,
|
|
565
|
+
"maximum": 9007199254740991
|
|
566
|
+
},
|
|
567
|
+
"ref": {
|
|
568
|
+
"description": "Single reference target of a Ref value; mutually exclusive with allowedTypes.",
|
|
569
|
+
"type": "object",
|
|
570
|
+
"properties": {
|
|
571
|
+
"kind": {
|
|
572
|
+
"type": "string",
|
|
573
|
+
"enum": [
|
|
574
|
+
"Catalog",
|
|
575
|
+
"Document",
|
|
576
|
+
"Enumeration",
|
|
577
|
+
"InformationRegister",
|
|
578
|
+
"AccumulationRegister",
|
|
579
|
+
"Constant",
|
|
580
|
+
"CustomTable",
|
|
581
|
+
"PgEnum",
|
|
582
|
+
"EventSubscription",
|
|
583
|
+
"RightsSet",
|
|
584
|
+
"Role"
|
|
585
|
+
],
|
|
586
|
+
"description": "Kind of the referenced metadata object."
|
|
587
|
+
},
|
|
588
|
+
"name": {
|
|
589
|
+
"type": "string",
|
|
590
|
+
"pattern": "^[A-Z][A-Za-z0-9]*$",
|
|
591
|
+
"description": "Logical name of the referenced object."
|
|
592
|
+
}
|
|
593
|
+
},
|
|
594
|
+
"required": [
|
|
595
|
+
"kind",
|
|
596
|
+
"name"
|
|
597
|
+
],
|
|
598
|
+
"additionalProperties": false
|
|
599
|
+
},
|
|
600
|
+
"allowedTypes": {
|
|
601
|
+
"description": "Polymorphic reference targets of a Ref value; mutually exclusive with ref.",
|
|
602
|
+
"minItems": 1,
|
|
603
|
+
"type": "array",
|
|
604
|
+
"items": {
|
|
605
|
+
"type": "object",
|
|
606
|
+
"properties": {
|
|
607
|
+
"kind": {
|
|
608
|
+
"type": "string",
|
|
609
|
+
"enum": [
|
|
610
|
+
"Catalog",
|
|
611
|
+
"Document",
|
|
612
|
+
"Enumeration",
|
|
613
|
+
"InformationRegister",
|
|
614
|
+
"AccumulationRegister",
|
|
615
|
+
"Constant",
|
|
616
|
+
"CustomTable",
|
|
617
|
+
"PgEnum",
|
|
618
|
+
"EventSubscription",
|
|
619
|
+
"RightsSet",
|
|
620
|
+
"Role"
|
|
621
|
+
],
|
|
622
|
+
"description": "Kind of the referenced metadata object."
|
|
623
|
+
},
|
|
624
|
+
"name": {
|
|
625
|
+
"type": "string",
|
|
626
|
+
"pattern": "^[A-Z][A-Za-z0-9]*$",
|
|
627
|
+
"description": "Logical name of the referenced object."
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
"required": [
|
|
631
|
+
"kind",
|
|
632
|
+
"name"
|
|
633
|
+
],
|
|
634
|
+
"additionalProperties": false,
|
|
635
|
+
"description": "Reference to a metadata object by kind and logical name; the compiler resolves it to an id."
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
"array": {
|
|
639
|
+
"description": "Whether the value is an array of the type.",
|
|
640
|
+
"type": "boolean"
|
|
641
|
+
},
|
|
642
|
+
"crossScope": {
|
|
643
|
+
"description": "Marks a deliberately cross-scope Ref: the FK has no scope part in its key.",
|
|
644
|
+
"type": "boolean",
|
|
645
|
+
"const": true
|
|
646
|
+
},
|
|
647
|
+
"required": {
|
|
648
|
+
"default": false,
|
|
649
|
+
"description": "Whether a value is mandatory (NOT NULL).",
|
|
650
|
+
"type": "boolean"
|
|
651
|
+
},
|
|
652
|
+
"indexed": {
|
|
653
|
+
"default": false,
|
|
654
|
+
"description": "Whether the attribute is indexed.",
|
|
655
|
+
"type": "boolean"
|
|
656
|
+
},
|
|
657
|
+
"unique": {
|
|
658
|
+
"default": false,
|
|
659
|
+
"description": "Whether values must be unique; \"ignoreCase\" compares a scalar String or Text value case-insensitively.",
|
|
660
|
+
"anyOf": [
|
|
661
|
+
{
|
|
662
|
+
"type": "boolean"
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"type": "string",
|
|
666
|
+
"const": "ignoreCase"
|
|
667
|
+
}
|
|
668
|
+
]
|
|
669
|
+
},
|
|
670
|
+
"defaultValue": {
|
|
671
|
+
"description": "Default value of the attribute.",
|
|
672
|
+
"anyOf": [
|
|
673
|
+
{
|
|
674
|
+
"type": "string"
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"type": "number"
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
"type": "boolean"
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"type": "object",
|
|
684
|
+
"properties": {
|
|
685
|
+
"fill": {
|
|
686
|
+
"type": "string",
|
|
687
|
+
"enum": [
|
|
688
|
+
"now",
|
|
689
|
+
"today",
|
|
690
|
+
"newUuid"
|
|
691
|
+
],
|
|
692
|
+
"description": "Fill expression computed by the database: now (DateTime), today (Date), newUuid (UUID)."
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
"required": [
|
|
696
|
+
"fill"
|
|
697
|
+
],
|
|
698
|
+
"additionalProperties": false
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
"type": "object",
|
|
702
|
+
"properties": {
|
|
703
|
+
"empty": {
|
|
704
|
+
"anyOf": [
|
|
705
|
+
{
|
|
706
|
+
"type": "boolean",
|
|
707
|
+
"const": true
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"type": "string",
|
|
711
|
+
"enum": [
|
|
712
|
+
"object",
|
|
713
|
+
"array"
|
|
714
|
+
]
|
|
715
|
+
}
|
|
716
|
+
],
|
|
717
|
+
"description": "Empty value: true for an array of any type, object or array for a scalar Json."
|
|
718
|
+
}
|
|
719
|
+
},
|
|
720
|
+
"required": [
|
|
721
|
+
"empty"
|
|
722
|
+
],
|
|
723
|
+
"additionalProperties": false
|
|
724
|
+
}
|
|
725
|
+
]
|
|
726
|
+
},
|
|
727
|
+
"nonNegative": {
|
|
728
|
+
"description": "Value must be zero or greater (CHECK); scalar Integer, SmallInt, BigInt or Numeric; excludes positive.",
|
|
729
|
+
"type": "boolean",
|
|
730
|
+
"const": true
|
|
731
|
+
},
|
|
732
|
+
"positive": {
|
|
733
|
+
"description": "Value must be greater than zero (CHECK); scalar Integer, SmallInt, BigInt or Numeric; excludes nonNegative.",
|
|
734
|
+
"type": "boolean",
|
|
735
|
+
"const": true
|
|
736
|
+
},
|
|
737
|
+
"minValue": {
|
|
738
|
+
"description": "Lower bound of the value (CHECK): a number or a decimal-fraction string within the type's range; numeric types only.",
|
|
739
|
+
"type": [
|
|
740
|
+
"number",
|
|
741
|
+
"string"
|
|
742
|
+
]
|
|
743
|
+
},
|
|
744
|
+
"maxValue": {
|
|
745
|
+
"description": "Upper bound of the value (CHECK): a number or a decimal-fraction string within the type's range; must not be below minValue; numeric types only.",
|
|
746
|
+
"type": [
|
|
747
|
+
"number",
|
|
748
|
+
"string"
|
|
749
|
+
]
|
|
750
|
+
},
|
|
751
|
+
"pattern": {
|
|
752
|
+
"description": "Regular expression the value must match (CHECK); valid for both JavaScript (u flag) and Postgres, so no named groups, \\p{...}, \\k<...>, \\b, \\B, \\x, \\u{...} or (?flags) groups; scalar String or Text only.",
|
|
753
|
+
"type": "string",
|
|
754
|
+
"minLength": 1
|
|
755
|
+
},
|
|
756
|
+
"minLength": {
|
|
757
|
+
"description": "Minimum number of characters (CHECK); scalar String or Text only.",
|
|
758
|
+
"type": "integer",
|
|
759
|
+
"exclusiveMinimum": 0,
|
|
760
|
+
"maximum": 9007199254740991
|
|
761
|
+
},
|
|
762
|
+
"personalData": {
|
|
763
|
+
"description": "Marks the attribute as personal data: anonymization sets its columns to NULL, so it cannot be required.",
|
|
764
|
+
"type": "boolean",
|
|
765
|
+
"const": true
|
|
766
|
+
},
|
|
767
|
+
"uniqueWithin": {
|
|
768
|
+
"description": "Narrows uniqueness to the owner or the parent of the object (needs unique; own attributes of an object whose kind has that standard attribute).",
|
|
769
|
+
"type": "string",
|
|
770
|
+
"enum": [
|
|
771
|
+
"owner",
|
|
772
|
+
"parent"
|
|
773
|
+
]
|
|
774
|
+
}
|
|
775
|
+
},
|
|
776
|
+
"required": [
|
|
777
|
+
"name",
|
|
778
|
+
"type"
|
|
779
|
+
],
|
|
780
|
+
"additionalProperties": false
|
|
781
|
+
}
|
|
782
|
+
},
|
|
783
|
+
"tabularSections": {
|
|
784
|
+
"default": [],
|
|
785
|
+
"description": "Tabular sections of the catalog.",
|
|
786
|
+
"type": "array",
|
|
787
|
+
"items": {
|
|
788
|
+
"type": "object",
|
|
789
|
+
"properties": {
|
|
790
|
+
"id": {
|
|
791
|
+
"type": "string",
|
|
792
|
+
"format": "uuid",
|
|
793
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$",
|
|
794
|
+
"description": "Stable lowercase UUID v4 identity of the element. Assigned by tooling at creation and never reused; a rename keeps it."
|
|
795
|
+
},
|
|
796
|
+
"name": {
|
|
797
|
+
"type": "string",
|
|
798
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
799
|
+
"description": "Logical element name (attribute, section, column). The casing style is checked against the project naming setting."
|
|
800
|
+
},
|
|
801
|
+
"physicalName": {
|
|
802
|
+
"type": "string",
|
|
803
|
+
"minLength": 1,
|
|
804
|
+
"description": "Physical database name. Assigned once at creation and never changed, so a rename emits no DDL. At most 63 bytes in UTF-8."
|
|
805
|
+
},
|
|
806
|
+
"title": {
|
|
807
|
+
"description": "Human-readable title of the tabular section.",
|
|
808
|
+
"type": "object",
|
|
809
|
+
"properties": {
|
|
810
|
+
"uk": {
|
|
811
|
+
"description": "Ukrainian text.",
|
|
812
|
+
"type": "string"
|
|
813
|
+
},
|
|
814
|
+
"en": {
|
|
815
|
+
"description": "English text.",
|
|
816
|
+
"type": "string"
|
|
817
|
+
}
|
|
818
|
+
},
|
|
819
|
+
"additionalProperties": false
|
|
820
|
+
},
|
|
821
|
+
"standardAttributeOverrides": {
|
|
822
|
+
"default": {},
|
|
823
|
+
"description": "Custom titles and descriptions of derived standard attributes, keyed by standard attribute name.",
|
|
824
|
+
"type": "object",
|
|
825
|
+
"propertyNames": {
|
|
826
|
+
"type": "string"
|
|
827
|
+
},
|
|
828
|
+
"additionalProperties": {
|
|
829
|
+
"type": "object",
|
|
830
|
+
"properties": {
|
|
831
|
+
"title": {
|
|
832
|
+
"description": "Overridden title of the standard attribute.",
|
|
833
|
+
"type": "object",
|
|
834
|
+
"properties": {
|
|
835
|
+
"uk": {
|
|
836
|
+
"description": "Ukrainian text.",
|
|
837
|
+
"type": "string"
|
|
838
|
+
},
|
|
839
|
+
"en": {
|
|
840
|
+
"description": "English text.",
|
|
841
|
+
"type": "string"
|
|
842
|
+
}
|
|
843
|
+
},
|
|
844
|
+
"additionalProperties": false
|
|
845
|
+
},
|
|
846
|
+
"description": {
|
|
847
|
+
"description": "Overridden description of the standard attribute.",
|
|
848
|
+
"type": "object",
|
|
849
|
+
"properties": {
|
|
850
|
+
"uk": {
|
|
851
|
+
"description": "Ukrainian text.",
|
|
852
|
+
"type": "string"
|
|
853
|
+
},
|
|
854
|
+
"en": {
|
|
855
|
+
"description": "English text.",
|
|
856
|
+
"type": "string"
|
|
857
|
+
}
|
|
858
|
+
},
|
|
859
|
+
"additionalProperties": false
|
|
860
|
+
}
|
|
861
|
+
},
|
|
862
|
+
"additionalProperties": false
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
"attributes": {
|
|
866
|
+
"default": [],
|
|
867
|
+
"description": "Attributes of the section rows.",
|
|
868
|
+
"type": "array",
|
|
869
|
+
"items": {
|
|
870
|
+
"type": "object",
|
|
871
|
+
"properties": {
|
|
872
|
+
"id": {
|
|
873
|
+
"type": "string",
|
|
874
|
+
"format": "uuid",
|
|
875
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$",
|
|
876
|
+
"description": "Stable lowercase UUID v4 identity of the element. Assigned by tooling at creation and never reused; a rename keeps it."
|
|
877
|
+
},
|
|
878
|
+
"name": {
|
|
879
|
+
"type": "string",
|
|
880
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
881
|
+
"description": "Logical element name (attribute, section, column). The casing style is checked against the project naming setting."
|
|
882
|
+
},
|
|
883
|
+
"physicalName": {
|
|
884
|
+
"type": "string",
|
|
885
|
+
"minLength": 1,
|
|
886
|
+
"description": "Physical database name. Assigned once at creation and never changed, so a rename emits no DDL. At most 63 bytes in UTF-8."
|
|
887
|
+
},
|
|
888
|
+
"title": {
|
|
889
|
+
"description": "Human-readable title of the attribute.",
|
|
890
|
+
"type": "object",
|
|
891
|
+
"properties": {
|
|
892
|
+
"uk": {
|
|
893
|
+
"description": "Ukrainian text.",
|
|
894
|
+
"type": "string"
|
|
895
|
+
},
|
|
896
|
+
"en": {
|
|
897
|
+
"description": "English text.",
|
|
898
|
+
"type": "string"
|
|
899
|
+
}
|
|
900
|
+
},
|
|
901
|
+
"additionalProperties": false
|
|
902
|
+
},
|
|
903
|
+
"description": {
|
|
904
|
+
"description": "Description of the attribute.",
|
|
905
|
+
"type": "object",
|
|
906
|
+
"properties": {
|
|
907
|
+
"uk": {
|
|
908
|
+
"description": "Ukrainian text.",
|
|
909
|
+
"type": "string"
|
|
910
|
+
},
|
|
911
|
+
"en": {
|
|
912
|
+
"description": "English text.",
|
|
913
|
+
"type": "string"
|
|
914
|
+
}
|
|
915
|
+
},
|
|
916
|
+
"additionalProperties": false
|
|
917
|
+
},
|
|
918
|
+
"type": {
|
|
919
|
+
"type": "string",
|
|
920
|
+
"enum": [
|
|
921
|
+
"UUID",
|
|
922
|
+
"String",
|
|
923
|
+
"Text",
|
|
924
|
+
"Integer",
|
|
925
|
+
"SmallInt",
|
|
926
|
+
"BigInt",
|
|
927
|
+
"Numeric",
|
|
928
|
+
"Boolean",
|
|
929
|
+
"Date",
|
|
930
|
+
"DateTime",
|
|
931
|
+
"Bytes",
|
|
932
|
+
"Json",
|
|
933
|
+
"Ref"
|
|
934
|
+
],
|
|
935
|
+
"description": "Logical value type."
|
|
936
|
+
},
|
|
937
|
+
"length": {
|
|
938
|
+
"description": "Maximum length; required for String and allowed only there.",
|
|
939
|
+
"type": "integer",
|
|
940
|
+
"exclusiveMinimum": 0,
|
|
941
|
+
"maximum": 9007199254740991
|
|
942
|
+
},
|
|
943
|
+
"precision": {
|
|
944
|
+
"description": "Total number of digits; allowed only for Numeric.",
|
|
945
|
+
"type": "integer",
|
|
946
|
+
"exclusiveMinimum": 0,
|
|
947
|
+
"maximum": 9007199254740991
|
|
948
|
+
},
|
|
949
|
+
"scale": {
|
|
950
|
+
"description": "Digits after the decimal point; requires precision.",
|
|
951
|
+
"type": "integer",
|
|
952
|
+
"minimum": 0,
|
|
953
|
+
"maximum": 9007199254740991
|
|
954
|
+
},
|
|
955
|
+
"ref": {
|
|
956
|
+
"description": "Single reference target of a Ref value; mutually exclusive with allowedTypes.",
|
|
957
|
+
"type": "object",
|
|
958
|
+
"properties": {
|
|
959
|
+
"kind": {
|
|
960
|
+
"type": "string",
|
|
961
|
+
"enum": [
|
|
962
|
+
"Catalog",
|
|
963
|
+
"Document",
|
|
964
|
+
"Enumeration",
|
|
965
|
+
"InformationRegister",
|
|
966
|
+
"AccumulationRegister",
|
|
967
|
+
"Constant",
|
|
968
|
+
"CustomTable",
|
|
969
|
+
"PgEnum",
|
|
970
|
+
"EventSubscription",
|
|
971
|
+
"RightsSet",
|
|
972
|
+
"Role"
|
|
973
|
+
],
|
|
974
|
+
"description": "Kind of the referenced metadata object."
|
|
975
|
+
},
|
|
976
|
+
"name": {
|
|
977
|
+
"type": "string",
|
|
978
|
+
"pattern": "^[A-Z][A-Za-z0-9]*$",
|
|
979
|
+
"description": "Logical name of the referenced object."
|
|
980
|
+
}
|
|
981
|
+
},
|
|
982
|
+
"required": [
|
|
983
|
+
"kind",
|
|
984
|
+
"name"
|
|
985
|
+
],
|
|
986
|
+
"additionalProperties": false
|
|
987
|
+
},
|
|
988
|
+
"allowedTypes": {
|
|
989
|
+
"description": "Polymorphic reference targets of a Ref value; mutually exclusive with ref.",
|
|
990
|
+
"minItems": 1,
|
|
991
|
+
"type": "array",
|
|
992
|
+
"items": {
|
|
993
|
+
"type": "object",
|
|
994
|
+
"properties": {
|
|
995
|
+
"kind": {
|
|
996
|
+
"type": "string",
|
|
997
|
+
"enum": [
|
|
998
|
+
"Catalog",
|
|
999
|
+
"Document",
|
|
1000
|
+
"Enumeration",
|
|
1001
|
+
"InformationRegister",
|
|
1002
|
+
"AccumulationRegister",
|
|
1003
|
+
"Constant",
|
|
1004
|
+
"CustomTable",
|
|
1005
|
+
"PgEnum",
|
|
1006
|
+
"EventSubscription",
|
|
1007
|
+
"RightsSet",
|
|
1008
|
+
"Role"
|
|
1009
|
+
],
|
|
1010
|
+
"description": "Kind of the referenced metadata object."
|
|
1011
|
+
},
|
|
1012
|
+
"name": {
|
|
1013
|
+
"type": "string",
|
|
1014
|
+
"pattern": "^[A-Z][A-Za-z0-9]*$",
|
|
1015
|
+
"description": "Logical name of the referenced object."
|
|
1016
|
+
}
|
|
1017
|
+
},
|
|
1018
|
+
"required": [
|
|
1019
|
+
"kind",
|
|
1020
|
+
"name"
|
|
1021
|
+
],
|
|
1022
|
+
"additionalProperties": false,
|
|
1023
|
+
"description": "Reference to a metadata object by kind and logical name; the compiler resolves it to an id."
|
|
1024
|
+
}
|
|
1025
|
+
},
|
|
1026
|
+
"array": {
|
|
1027
|
+
"description": "Whether the value is an array of the type.",
|
|
1028
|
+
"type": "boolean"
|
|
1029
|
+
},
|
|
1030
|
+
"crossScope": {
|
|
1031
|
+
"description": "Marks a deliberately cross-scope Ref: the FK has no scope part in its key.",
|
|
1032
|
+
"type": "boolean",
|
|
1033
|
+
"const": true
|
|
1034
|
+
},
|
|
1035
|
+
"required": {
|
|
1036
|
+
"default": false,
|
|
1037
|
+
"description": "Whether a value is mandatory (NOT NULL).",
|
|
1038
|
+
"type": "boolean"
|
|
1039
|
+
},
|
|
1040
|
+
"indexed": {
|
|
1041
|
+
"default": false,
|
|
1042
|
+
"description": "Whether the attribute is indexed.",
|
|
1043
|
+
"type": "boolean"
|
|
1044
|
+
},
|
|
1045
|
+
"unique": {
|
|
1046
|
+
"default": false,
|
|
1047
|
+
"description": "Whether values must be unique; \"ignoreCase\" compares a scalar String or Text value case-insensitively.",
|
|
1048
|
+
"anyOf": [
|
|
1049
|
+
{
|
|
1050
|
+
"type": "boolean"
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
"type": "string",
|
|
1054
|
+
"const": "ignoreCase"
|
|
1055
|
+
}
|
|
1056
|
+
]
|
|
1057
|
+
},
|
|
1058
|
+
"defaultValue": {
|
|
1059
|
+
"description": "Default value of the attribute.",
|
|
1060
|
+
"anyOf": [
|
|
1061
|
+
{
|
|
1062
|
+
"type": "string"
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
"type": "number"
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
"type": "boolean"
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
"type": "object",
|
|
1072
|
+
"properties": {
|
|
1073
|
+
"fill": {
|
|
1074
|
+
"type": "string",
|
|
1075
|
+
"enum": [
|
|
1076
|
+
"now",
|
|
1077
|
+
"today",
|
|
1078
|
+
"newUuid"
|
|
1079
|
+
],
|
|
1080
|
+
"description": "Fill expression computed by the database: now (DateTime), today (Date), newUuid (UUID)."
|
|
1081
|
+
}
|
|
1082
|
+
},
|
|
1083
|
+
"required": [
|
|
1084
|
+
"fill"
|
|
1085
|
+
],
|
|
1086
|
+
"additionalProperties": false
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
"type": "object",
|
|
1090
|
+
"properties": {
|
|
1091
|
+
"empty": {
|
|
1092
|
+
"anyOf": [
|
|
1093
|
+
{
|
|
1094
|
+
"type": "boolean",
|
|
1095
|
+
"const": true
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
"type": "string",
|
|
1099
|
+
"enum": [
|
|
1100
|
+
"object",
|
|
1101
|
+
"array"
|
|
1102
|
+
]
|
|
1103
|
+
}
|
|
1104
|
+
],
|
|
1105
|
+
"description": "Empty value: true for an array of any type, object or array for a scalar Json."
|
|
1106
|
+
}
|
|
1107
|
+
},
|
|
1108
|
+
"required": [
|
|
1109
|
+
"empty"
|
|
1110
|
+
],
|
|
1111
|
+
"additionalProperties": false
|
|
1112
|
+
}
|
|
1113
|
+
]
|
|
1114
|
+
},
|
|
1115
|
+
"nonNegative": {
|
|
1116
|
+
"description": "Value must be zero or greater (CHECK); scalar Integer, SmallInt, BigInt or Numeric; excludes positive.",
|
|
1117
|
+
"type": "boolean",
|
|
1118
|
+
"const": true
|
|
1119
|
+
},
|
|
1120
|
+
"positive": {
|
|
1121
|
+
"description": "Value must be greater than zero (CHECK); scalar Integer, SmallInt, BigInt or Numeric; excludes nonNegative.",
|
|
1122
|
+
"type": "boolean",
|
|
1123
|
+
"const": true
|
|
1124
|
+
},
|
|
1125
|
+
"minValue": {
|
|
1126
|
+
"description": "Lower bound of the value (CHECK): a number or a decimal-fraction string within the type's range; numeric types only.",
|
|
1127
|
+
"type": [
|
|
1128
|
+
"number",
|
|
1129
|
+
"string"
|
|
1130
|
+
]
|
|
1131
|
+
},
|
|
1132
|
+
"maxValue": {
|
|
1133
|
+
"description": "Upper bound of the value (CHECK): a number or a decimal-fraction string within the type's range; must not be below minValue; numeric types only.",
|
|
1134
|
+
"type": [
|
|
1135
|
+
"number",
|
|
1136
|
+
"string"
|
|
1137
|
+
]
|
|
1138
|
+
},
|
|
1139
|
+
"pattern": {
|
|
1140
|
+
"description": "Regular expression the value must match (CHECK); valid for both JavaScript (u flag) and Postgres, so no named groups, \\p{...}, \\k<...>, \\b, \\B, \\x, \\u{...} or (?flags) groups; scalar String or Text only.",
|
|
1141
|
+
"type": "string",
|
|
1142
|
+
"minLength": 1
|
|
1143
|
+
},
|
|
1144
|
+
"minLength": {
|
|
1145
|
+
"description": "Minimum number of characters (CHECK); scalar String or Text only.",
|
|
1146
|
+
"type": "integer",
|
|
1147
|
+
"exclusiveMinimum": 0,
|
|
1148
|
+
"maximum": 9007199254740991
|
|
1149
|
+
},
|
|
1150
|
+
"personalData": {
|
|
1151
|
+
"description": "Marks the attribute as personal data: anonymization sets its columns to NULL, so it cannot be required.",
|
|
1152
|
+
"type": "boolean",
|
|
1153
|
+
"const": true
|
|
1154
|
+
}
|
|
1155
|
+
},
|
|
1156
|
+
"required": [
|
|
1157
|
+
"name",
|
|
1158
|
+
"type"
|
|
1159
|
+
],
|
|
1160
|
+
"additionalProperties": false
|
|
1161
|
+
}
|
|
1162
|
+
},
|
|
1163
|
+
"indexes": {
|
|
1164
|
+
"default": [],
|
|
1165
|
+
"description": "Composite indexes over the section rows.",
|
|
1166
|
+
"type": "array",
|
|
1167
|
+
"items": {
|
|
1168
|
+
"type": "object",
|
|
1169
|
+
"properties": {
|
|
1170
|
+
"attributes": {
|
|
1171
|
+
"minItems": 1,
|
|
1172
|
+
"type": "array",
|
|
1173
|
+
"items": {
|
|
1174
|
+
"anyOf": [
|
|
1175
|
+
{
|
|
1176
|
+
"type": "string",
|
|
1177
|
+
"minLength": 1
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
"type": "object",
|
|
1181
|
+
"properties": {
|
|
1182
|
+
"name": {
|
|
1183
|
+
"type": "string",
|
|
1184
|
+
"minLength": 1,
|
|
1185
|
+
"description": "Logical name of the attribute."
|
|
1186
|
+
},
|
|
1187
|
+
"order": {
|
|
1188
|
+
"type": "string",
|
|
1189
|
+
"const": "desc",
|
|
1190
|
+
"description": "Descending order of this key part."
|
|
1191
|
+
}
|
|
1192
|
+
},
|
|
1193
|
+
"required": [
|
|
1194
|
+
"name",
|
|
1195
|
+
"order"
|
|
1196
|
+
],
|
|
1197
|
+
"additionalProperties": false
|
|
1198
|
+
}
|
|
1199
|
+
]
|
|
1200
|
+
},
|
|
1201
|
+
"description": "Attributes and standard attributes of the same table in key order; a name, or { name, order: desc } for a descending part."
|
|
1202
|
+
}
|
|
1203
|
+
},
|
|
1204
|
+
"required": [
|
|
1205
|
+
"attributes"
|
|
1206
|
+
],
|
|
1207
|
+
"additionalProperties": false,
|
|
1208
|
+
"description": "Non-unique btree index over attributes of the same table; the scope carrier is added first automatically."
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
},
|
|
1212
|
+
"required": [
|
|
1213
|
+
"name"
|
|
1214
|
+
],
|
|
1215
|
+
"additionalProperties": false,
|
|
1216
|
+
"description": "Tabular section: a list of rows owned by an object."
|
|
1217
|
+
}
|
|
1218
|
+
},
|
|
1219
|
+
"indexes": {
|
|
1220
|
+
"default": [],
|
|
1221
|
+
"description": "Composite indexes over the catalog attributes.",
|
|
1222
|
+
"type": "array",
|
|
1223
|
+
"items": {
|
|
1224
|
+
"type": "object",
|
|
1225
|
+
"properties": {
|
|
1226
|
+
"attributes": {
|
|
1227
|
+
"minItems": 1,
|
|
1228
|
+
"type": "array",
|
|
1229
|
+
"items": {
|
|
1230
|
+
"anyOf": [
|
|
1231
|
+
{
|
|
1232
|
+
"type": "string",
|
|
1233
|
+
"minLength": 1
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
"type": "object",
|
|
1237
|
+
"properties": {
|
|
1238
|
+
"name": {
|
|
1239
|
+
"type": "string",
|
|
1240
|
+
"minLength": 1,
|
|
1241
|
+
"description": "Logical name of the attribute."
|
|
1242
|
+
},
|
|
1243
|
+
"order": {
|
|
1244
|
+
"type": "string",
|
|
1245
|
+
"const": "desc",
|
|
1246
|
+
"description": "Descending order of this key part."
|
|
1247
|
+
}
|
|
1248
|
+
},
|
|
1249
|
+
"required": [
|
|
1250
|
+
"name",
|
|
1251
|
+
"order"
|
|
1252
|
+
],
|
|
1253
|
+
"additionalProperties": false
|
|
1254
|
+
}
|
|
1255
|
+
]
|
|
1256
|
+
},
|
|
1257
|
+
"description": "Attributes and standard attributes of the same table in key order; a name, or { name, order: desc } for a descending part."
|
|
1258
|
+
}
|
|
1259
|
+
},
|
|
1260
|
+
"required": [
|
|
1261
|
+
"attributes"
|
|
1262
|
+
],
|
|
1263
|
+
"additionalProperties": false,
|
|
1264
|
+
"description": "Non-unique btree index over attributes of the same table; the scope carrier is added first automatically."
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
},
|
|
1268
|
+
"required": [
|
|
1269
|
+
"name",
|
|
1270
|
+
"kind"
|
|
1271
|
+
],
|
|
1272
|
+
"additionalProperties": false,
|
|
1273
|
+
"$id": "catalogs.schema.json"
|
|
1274
|
+
}
|