umf-codegen 0.10.8__py3-none-any.whl

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.
@@ -0,0 +1,384 @@
1
+ {
2
+ "id": "umf.binding",
3
+ "version": "0.1.0",
4
+ "coreVersion": "0.10.0",
5
+ "description": "Independent target-specific physical binding for a logical UMF document",
6
+ "schema": {
7
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
8
+ "$id": "urn:umf:binding:0.1.0",
9
+ "title": "UMF physical binding 0.1.0",
10
+ "type": "object",
11
+ "required": [
12
+ "profile",
13
+ "logical",
14
+ "target",
15
+ "elements",
16
+ "fields",
17
+ "relationships",
18
+ "indexes"
19
+ ],
20
+ "properties": {
21
+ "profile": {
22
+ "const": "umf-binding-1"
23
+ },
24
+ "logical": {
25
+ "type": "object",
26
+ "required": [
27
+ "documentId",
28
+ "coreVersion"
29
+ ],
30
+ "properties": {
31
+ "documentId": {
32
+ "type": "string",
33
+ "minLength": 1
34
+ },
35
+ "coreVersion": {
36
+ "type": "string",
37
+ "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"
38
+ }
39
+ }
40
+ },
41
+ "target": {
42
+ "type": "object",
43
+ "required": [
44
+ "system",
45
+ "version",
46
+ "subset"
47
+ ],
48
+ "properties": {
49
+ "system": {
50
+ "type": "string",
51
+ "minLength": 1
52
+ },
53
+ "version": {
54
+ "type": "string",
55
+ "minLength": 1
56
+ },
57
+ "subset": {
58
+ "type": "string",
59
+ "minLength": 1
60
+ }
61
+ }
62
+ },
63
+ "elements": {
64
+ "type": "array",
65
+ "items": {
66
+ "type": "object",
67
+ "required": [
68
+ "module",
69
+ "element"
70
+ ],
71
+ "properties": {
72
+ "module": {
73
+ "type": "string",
74
+ "minLength": 1
75
+ },
76
+ "element": {
77
+ "type": "string",
78
+ "minLength": 1
79
+ },
80
+ "partition": {
81
+ "anyOf": [
82
+ {
83
+ "type": "string",
84
+ "minLength": 1
85
+ },
86
+ {
87
+ "type": "null"
88
+ }
89
+ ]
90
+ },
91
+ "table": {
92
+ "type": "string",
93
+ "minLength": 1
94
+ }
95
+ }
96
+ }
97
+ },
98
+ "fields": {
99
+ "type": "array",
100
+ "items": {
101
+ "type": "object",
102
+ "required": [
103
+ "module",
104
+ "element",
105
+ "storage"
106
+ ],
107
+ "properties": {
108
+ "module": {
109
+ "type": "string",
110
+ "minLength": 1
111
+ },
112
+ "element": {
113
+ "type": "string",
114
+ "minLength": 1
115
+ },
116
+ "storage": {
117
+ "enum": [
118
+ "column",
119
+ "embedded"
120
+ ]
121
+ },
122
+ "column": {
123
+ "type": "string",
124
+ "minLength": 1
125
+ },
126
+ "documentColumn": {
127
+ "type": "string",
128
+ "minLength": 1
129
+ },
130
+ "path": {
131
+ "$ref": "#/$defs/path"
132
+ },
133
+ "field": {
134
+ "type": "string",
135
+ "minLength": 1
136
+ }
137
+ },
138
+ "allOf": [
139
+ {
140
+ "if": {
141
+ "properties": {
142
+ "storage": {
143
+ "const": "embedded"
144
+ }
145
+ },
146
+ "required": [
147
+ "storage"
148
+ ]
149
+ },
150
+ "then": {
151
+ "required": [
152
+ "documentColumn",
153
+ "path"
154
+ ],
155
+ "properties": {
156
+ "documentColumn": {
157
+ "type": "string",
158
+ "minLength": 1
159
+ },
160
+ "path": {
161
+ "$ref": "#/$defs/path"
162
+ }
163
+ }
164
+ },
165
+ "else": {
166
+ "not": {
167
+ "anyOf": [
168
+ {
169
+ "required": [
170
+ "documentColumn"
171
+ ]
172
+ },
173
+ {
174
+ "required": [
175
+ "path"
176
+ ]
177
+ }
178
+ ]
179
+ }
180
+ }
181
+ }
182
+ ]
183
+ }
184
+ },
185
+ "relationships": {
186
+ "type": "array",
187
+ "items": {
188
+ "type": "object",
189
+ "required": [
190
+ "module",
191
+ "name",
192
+ "storage"
193
+ ],
194
+ "properties": {
195
+ "module": {
196
+ "type": "string",
197
+ "minLength": 1
198
+ },
199
+ "name": {
200
+ "type": "string",
201
+ "minLength": 1
202
+ },
203
+ "storage": {
204
+ "enum": [
205
+ "edge",
206
+ "foreign_key",
207
+ "junction",
208
+ "inline"
209
+ ]
210
+ }
211
+ }
212
+ }
213
+ },
214
+ "indexes": {
215
+ "type": "array",
216
+ "items": {
217
+ "$ref": "#/$defs/index"
218
+ }
219
+ }
220
+ },
221
+ "$defs": {
222
+ "elementRef": {
223
+ "type": "object",
224
+ "required": [
225
+ "module",
226
+ "element"
227
+ ],
228
+ "properties": {
229
+ "module": {
230
+ "type": "string",
231
+ "minLength": 1
232
+ },
233
+ "element": {
234
+ "type": "string",
235
+ "minLength": 1
236
+ },
237
+ "field": {
238
+ "type": "string",
239
+ "minLength": 1
240
+ }
241
+ }
242
+ },
243
+ "relationshipRef": {
244
+ "type": "object",
245
+ "required": [
246
+ "module",
247
+ "name"
248
+ ],
249
+ "properties": {
250
+ "module": {
251
+ "type": "string",
252
+ "minLength": 1
253
+ },
254
+ "name": {
255
+ "type": "string",
256
+ "minLength": 1
257
+ }
258
+ }
259
+ },
260
+ "path": {
261
+ "type": "array",
262
+ "minItems": 1,
263
+ "items": {
264
+ "type": "string",
265
+ "minLength": 1
266
+ }
267
+ },
268
+ "indexTarget": {
269
+ "oneOf": [
270
+ {
271
+ "type": "object",
272
+ "required": [
273
+ "field"
274
+ ],
275
+ "properties": {
276
+ "field": {
277
+ "$ref": "#/$defs/elementRef"
278
+ }
279
+ }
280
+ },
281
+ {
282
+ "type": "object",
283
+ "required": [
284
+ "documentPath"
285
+ ],
286
+ "properties": {
287
+ "documentPath": {
288
+ "type": "object",
289
+ "required": [
290
+ "field",
291
+ "path"
292
+ ],
293
+ "properties": {
294
+ "field": {
295
+ "$ref": "#/$defs/elementRef"
296
+ },
297
+ "path": {
298
+ "$ref": "#/$defs/path"
299
+ }
300
+ }
301
+ }
302
+ }
303
+ }
304
+ ]
305
+ },
306
+ "index": {
307
+ "type": "object",
308
+ "required": [
309
+ "name",
310
+ "kind",
311
+ "on",
312
+ "unique"
313
+ ],
314
+ "properties": {
315
+ "name": {
316
+ "type": "string",
317
+ "minLength": 1
318
+ },
319
+ "kind": {
320
+ "enum": [
321
+ "btree",
322
+ "hash",
323
+ "gin",
324
+ "gist",
325
+ "expression",
326
+ "partial",
327
+ "unique",
328
+ "clustering"
329
+ ]
330
+ },
331
+ "on": {
332
+ "type": "array",
333
+ "minItems": 1,
334
+ "items": {
335
+ "$ref": "#/$defs/indexTarget"
336
+ }
337
+ },
338
+ "predicate": {
339
+ "type": "object",
340
+ "required": [
341
+ "language",
342
+ "version",
343
+ "expression"
344
+ ],
345
+ "properties": {
346
+ "language": {
347
+ "type": "string",
348
+ "minLength": 1
349
+ },
350
+ "version": {
351
+ "type": "string",
352
+ "minLength": 1
353
+ },
354
+ "expression": {
355
+ "type": "string",
356
+ "minLength": 1
357
+ }
358
+ }
359
+ },
360
+ "unique": {
361
+ "type": "boolean"
362
+ },
363
+ "include": {
364
+ "type": "array",
365
+ "items": {
366
+ "$ref": "#/$defs/elementRef"
367
+ }
368
+ }
369
+ }
370
+ }
371
+ }
372
+ },
373
+ "semantics": "CONTRACT-042. Layout and index choices are physical only; they never alter logical identity or field meaning. Unknown content remains recoverable. Target support needs separate qualified evidence.",
374
+ "scopes": [
375
+ "document"
376
+ ],
377
+ "capabilities": {
378
+ "validation": "semantic",
379
+ "directions": [],
380
+ "evidence": [
381
+ "tests/binding/package.test.ts"
382
+ ]
383
+ }
384
+ }