@jxsuite/schema 0.0.1 → 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/class-schema.json +48 -13
- package/package.json +1 -1
- package/project-schema.json +50 -13
- package/schema.json +195 -49
package/class-schema.json
CHANGED
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
"title": "Jx Class Definition",
|
|
5
5
|
"description": "Schema for Jx .class.json files. A class definition describes a schema-defined class with fields, constructor, methods, and type parameters. Optionally points to a JS module via $implementation for hybrid execution.",
|
|
6
6
|
"type": "object",
|
|
7
|
-
"required": [
|
|
7
|
+
"required": [
|
|
8
|
+
"$prototype",
|
|
9
|
+
"title"
|
|
10
|
+
],
|
|
8
11
|
"properties": {
|
|
9
12
|
"$schema": {
|
|
10
13
|
"type": "string"
|
|
@@ -20,7 +23,11 @@
|
|
|
20
23
|
"title": {
|
|
21
24
|
"description": "PascalCase class name, used as the export name.",
|
|
22
25
|
"type": "string",
|
|
23
|
-
"examples": [
|
|
26
|
+
"examples": [
|
|
27
|
+
"MarkdownFile",
|
|
28
|
+
"DataSource",
|
|
29
|
+
"Calculator"
|
|
30
|
+
]
|
|
24
31
|
},
|
|
25
32
|
"description": {
|
|
26
33
|
"type": "string"
|
|
@@ -33,7 +40,9 @@
|
|
|
33
40
|
},
|
|
34
41
|
{
|
|
35
42
|
"type": "object",
|
|
36
|
-
"required": [
|
|
43
|
+
"required": [
|
|
44
|
+
"$ref"
|
|
45
|
+
],
|
|
37
46
|
"properties": {
|
|
38
47
|
"$ref": {
|
|
39
48
|
"type": "string"
|
|
@@ -46,7 +55,10 @@
|
|
|
46
55
|
"$implementation": {
|
|
47
56
|
"description": "Relative path to a JS module containing the actual class implementation.",
|
|
48
57
|
"type": "string",
|
|
49
|
-
"examples": [
|
|
58
|
+
"examples": [
|
|
59
|
+
"./md.js",
|
|
60
|
+
"./lib/calculator.js"
|
|
61
|
+
]
|
|
50
62
|
},
|
|
51
63
|
"$defs": {
|
|
52
64
|
"description": "Class members: parameters, returnTypes, fields, constructor, methods.",
|
|
@@ -91,7 +103,9 @@
|
|
|
91
103
|
"ClassParameterDef": {
|
|
92
104
|
"description": "A typed parameter definition for a class.",
|
|
93
105
|
"type": "object",
|
|
94
|
-
"required": [
|
|
106
|
+
"required": [
|
|
107
|
+
"identifier"
|
|
108
|
+
],
|
|
95
109
|
"properties": {
|
|
96
110
|
"identifier": {
|
|
97
111
|
"type": "string"
|
|
@@ -120,11 +134,18 @@
|
|
|
120
134
|
},
|
|
121
135
|
"access": {
|
|
122
136
|
"type": "string",
|
|
123
|
-
"enum": [
|
|
137
|
+
"enum": [
|
|
138
|
+
"public",
|
|
139
|
+
"private",
|
|
140
|
+
"protected"
|
|
141
|
+
]
|
|
124
142
|
},
|
|
125
143
|
"scope": {
|
|
126
144
|
"type": "string",
|
|
127
|
-
"enum": [
|
|
145
|
+
"enum": [
|
|
146
|
+
"instance",
|
|
147
|
+
"static"
|
|
148
|
+
]
|
|
128
149
|
},
|
|
129
150
|
"identifier": {
|
|
130
151
|
"type": "string"
|
|
@@ -162,7 +183,9 @@
|
|
|
162
183
|
"oneOf": [
|
|
163
184
|
{
|
|
164
185
|
"type": "object",
|
|
165
|
-
"required": [
|
|
186
|
+
"required": [
|
|
187
|
+
"$ref"
|
|
188
|
+
],
|
|
166
189
|
"properties": {
|
|
167
190
|
"$ref": {
|
|
168
191
|
"type": "string"
|
|
@@ -211,7 +234,10 @@
|
|
|
211
234
|
"properties": {
|
|
212
235
|
"role": {
|
|
213
236
|
"type": "string",
|
|
214
|
-
"enum": [
|
|
237
|
+
"enum": [
|
|
238
|
+
"method",
|
|
239
|
+
"accessor"
|
|
240
|
+
]
|
|
215
241
|
},
|
|
216
242
|
"$prototype": {
|
|
217
243
|
"type": "string",
|
|
@@ -219,11 +245,18 @@
|
|
|
219
245
|
},
|
|
220
246
|
"access": {
|
|
221
247
|
"type": "string",
|
|
222
|
-
"enum": [
|
|
248
|
+
"enum": [
|
|
249
|
+
"public",
|
|
250
|
+
"private",
|
|
251
|
+
"protected"
|
|
252
|
+
]
|
|
223
253
|
},
|
|
224
254
|
"scope": {
|
|
225
255
|
"type": "string",
|
|
226
|
-
"enum": [
|
|
256
|
+
"enum": [
|
|
257
|
+
"instance",
|
|
258
|
+
"static"
|
|
259
|
+
]
|
|
227
260
|
},
|
|
228
261
|
"identifier": {
|
|
229
262
|
"type": "string"
|
|
@@ -234,7 +267,9 @@
|
|
|
234
267
|
"oneOf": [
|
|
235
268
|
{
|
|
236
269
|
"type": "object",
|
|
237
|
-
"required": [
|
|
270
|
+
"required": [
|
|
271
|
+
"$ref"
|
|
272
|
+
],
|
|
238
273
|
"properties": {
|
|
239
274
|
"$ref": {
|
|
240
275
|
"type": "string"
|
|
@@ -287,4 +322,4 @@
|
|
|
287
322
|
}
|
|
288
323
|
}
|
|
289
324
|
}
|
|
290
|
-
}
|
|
325
|
+
}
|
package/package.json
CHANGED
package/project-schema.json
CHANGED
|
@@ -9,12 +9,18 @@
|
|
|
9
9
|
"description": "Human-readable project name.",
|
|
10
10
|
"type": "string",
|
|
11
11
|
"default": "Jx Site",
|
|
12
|
-
"examples": [
|
|
12
|
+
"examples": [
|
|
13
|
+
"My Portfolio",
|
|
14
|
+
"Jx Example Site"
|
|
15
|
+
]
|
|
13
16
|
},
|
|
14
17
|
"url": {
|
|
15
18
|
"description": "Production URL of the deployed site.",
|
|
16
19
|
"type": "string",
|
|
17
|
-
"examples": [
|
|
20
|
+
"examples": [
|
|
21
|
+
"https://example.com",
|
|
22
|
+
"https://jxsuite.com"
|
|
23
|
+
]
|
|
18
24
|
},
|
|
19
25
|
"defaults": {
|
|
20
26
|
"description": "Default settings applied to all pages unless overridden.",
|
|
@@ -31,7 +37,9 @@
|
|
|
31
37
|
}
|
|
32
38
|
],
|
|
33
39
|
"default": null,
|
|
34
|
-
"examples": [
|
|
40
|
+
"examples": [
|
|
41
|
+
"./layouts/base.json"
|
|
42
|
+
]
|
|
35
43
|
},
|
|
36
44
|
"lang": {
|
|
37
45
|
"description": "Default lang attribute for the <html> element.",
|
|
@@ -88,7 +96,9 @@
|
|
|
88
96
|
"oneOf": [
|
|
89
97
|
{
|
|
90
98
|
"type": "object",
|
|
91
|
-
"required": [
|
|
99
|
+
"required": [
|
|
100
|
+
"$ref"
|
|
101
|
+
],
|
|
92
102
|
"properties": {
|
|
93
103
|
"$ref": {
|
|
94
104
|
"type": "string"
|
|
@@ -159,7 +169,10 @@
|
|
|
159
169
|
"source": {
|
|
160
170
|
"description": "Glob pattern for content files relative to the content directory.",
|
|
161
171
|
"type": "string",
|
|
162
|
-
"examples": [
|
|
172
|
+
"examples": [
|
|
173
|
+
"./blog/**/*.md",
|
|
174
|
+
"./docs/**/*.md"
|
|
175
|
+
]
|
|
163
176
|
},
|
|
164
177
|
"schema": {
|
|
165
178
|
"description": "JSON Schema for validating frontmatter of collection entries.",
|
|
@@ -172,7 +185,9 @@
|
|
|
172
185
|
"oneOf": [
|
|
173
186
|
{
|
|
174
187
|
"type": "object",
|
|
175
|
-
"required": [
|
|
188
|
+
"required": [
|
|
189
|
+
"$ref"
|
|
190
|
+
],
|
|
176
191
|
"properties": {
|
|
177
192
|
"$ref": {
|
|
178
193
|
"type": "string"
|
|
@@ -219,19 +234,30 @@
|
|
|
219
234
|
"format": {
|
|
220
235
|
"description": "Output format.",
|
|
221
236
|
"type": "string",
|
|
222
|
-
"enum": [
|
|
237
|
+
"enum": [
|
|
238
|
+
"directory",
|
|
239
|
+
"single"
|
|
240
|
+
],
|
|
223
241
|
"default": "directory"
|
|
224
242
|
},
|
|
225
243
|
"trailingSlash": {
|
|
226
244
|
"description": "Trailing slash behavior for generated URLs.",
|
|
227
245
|
"type": "string",
|
|
228
|
-
"enum": [
|
|
246
|
+
"enum": [
|
|
247
|
+
"always",
|
|
248
|
+
"never",
|
|
249
|
+
"ignore"
|
|
250
|
+
],
|
|
229
251
|
"default": "always"
|
|
230
252
|
},
|
|
231
253
|
"adapter": {
|
|
232
254
|
"description": "Platform adapter for deployment-specific output.",
|
|
233
255
|
"type": "string",
|
|
234
|
-
"enum": [
|
|
256
|
+
"enum": [
|
|
257
|
+
"netlify",
|
|
258
|
+
"vercel",
|
|
259
|
+
"cloudflare"
|
|
260
|
+
]
|
|
235
261
|
}
|
|
236
262
|
}
|
|
237
263
|
},
|
|
@@ -242,7 +268,9 @@
|
|
|
242
268
|
"defaultLocale": {
|
|
243
269
|
"description": "Default locale code.",
|
|
244
270
|
"type": "string",
|
|
245
|
-
"examples": [
|
|
271
|
+
"examples": [
|
|
272
|
+
"en"
|
|
273
|
+
]
|
|
246
274
|
},
|
|
247
275
|
"locales": {
|
|
248
276
|
"description": "Available locale codes.",
|
|
@@ -250,15 +278,24 @@
|
|
|
250
278
|
"items": {
|
|
251
279
|
"type": "string"
|
|
252
280
|
},
|
|
253
|
-
"examples": [
|
|
281
|
+
"examples": [
|
|
282
|
+
[
|
|
283
|
+
"en",
|
|
284
|
+
"fr",
|
|
285
|
+
"de"
|
|
286
|
+
]
|
|
287
|
+
]
|
|
254
288
|
},
|
|
255
289
|
"routing": {
|
|
256
290
|
"description": "Locale routing strategy.",
|
|
257
291
|
"type": "string",
|
|
258
|
-
"enum": [
|
|
292
|
+
"enum": [
|
|
293
|
+
"prefix-except-default",
|
|
294
|
+
"prefix-always"
|
|
295
|
+
]
|
|
259
296
|
}
|
|
260
297
|
}
|
|
261
298
|
}
|
|
262
299
|
},
|
|
263
300
|
"additionalProperties": false
|
|
264
|
-
}
|
|
301
|
+
}
|
package/schema.json
CHANGED
|
@@ -8,12 +8,18 @@
|
|
|
8
8
|
"$schema": {
|
|
9
9
|
"description": "URI identifying the Jx dialect version. Enables schema-aware IDE tooling.",
|
|
10
10
|
"type": "string",
|
|
11
|
-
"examples": [
|
|
11
|
+
"examples": [
|
|
12
|
+
"https://jxsuite.com/schema/v1"
|
|
13
|
+
]
|
|
12
14
|
},
|
|
13
15
|
"$id": {
|
|
14
16
|
"description": "Component identifier string. Used by tooling and the builder.",
|
|
15
17
|
"type": "string",
|
|
16
|
-
"examples": [
|
|
18
|
+
"examples": [
|
|
19
|
+
"Counter",
|
|
20
|
+
"TodoApp",
|
|
21
|
+
"UserCard"
|
|
22
|
+
]
|
|
17
23
|
},
|
|
18
24
|
"$defs": {
|
|
19
25
|
"description": "Pure JSON Schema type definitions for this component. All entries are reusable type schemas — no runtime artifacts are produced. Referenced from state entries via $ref. Naming convention: PascalCase.",
|
|
@@ -44,7 +50,9 @@
|
|
|
44
50
|
"oneOf": [
|
|
45
51
|
{
|
|
46
52
|
"type": "object",
|
|
47
|
-
"required": [
|
|
53
|
+
"required": [
|
|
54
|
+
"$ref"
|
|
55
|
+
],
|
|
48
56
|
"properties": {
|
|
49
57
|
"$ref": {
|
|
50
58
|
"type": "string"
|
|
@@ -77,7 +85,9 @@
|
|
|
77
85
|
"const": false
|
|
78
86
|
}
|
|
79
87
|
],
|
|
80
|
-
"examples": [
|
|
88
|
+
"examples": [
|
|
89
|
+
"./layouts/base.json"
|
|
90
|
+
]
|
|
81
91
|
},
|
|
82
92
|
"$paths": {
|
|
83
93
|
"description": "Dynamic route parameters. Maps parameter names to data sources for generating one page per entry at build time.",
|
|
@@ -189,13 +199,19 @@
|
|
|
189
199
|
"not": {
|
|
190
200
|
"anyOf": [
|
|
191
201
|
{
|
|
192
|
-
"required": [
|
|
202
|
+
"required": [
|
|
203
|
+
"$prototype"
|
|
204
|
+
]
|
|
193
205
|
},
|
|
194
206
|
{
|
|
195
|
-
"required": [
|
|
207
|
+
"required": [
|
|
208
|
+
"default"
|
|
209
|
+
]
|
|
196
210
|
},
|
|
197
211
|
{
|
|
198
|
-
"required": [
|
|
212
|
+
"required": [
|
|
213
|
+
"type"
|
|
214
|
+
]
|
|
199
215
|
}
|
|
200
216
|
]
|
|
201
217
|
}
|
|
@@ -205,7 +221,9 @@
|
|
|
205
221
|
"TypedStateDef": {
|
|
206
222
|
"description": "A typed reactive state variable with explicit type and default value. The type property is a JSON Schema or $ref to a $defs type definition. The default property is the initial runtime value.",
|
|
207
223
|
"type": "object",
|
|
208
|
-
"required": [
|
|
224
|
+
"required": [
|
|
225
|
+
"default"
|
|
226
|
+
],
|
|
209
227
|
"properties": {
|
|
210
228
|
"default": {
|
|
211
229
|
"description": "Initial state value."
|
|
@@ -252,13 +270,17 @@
|
|
|
252
270
|
}
|
|
253
271
|
},
|
|
254
272
|
"not": {
|
|
255
|
-
"required": [
|
|
273
|
+
"required": [
|
|
274
|
+
"$prototype"
|
|
275
|
+
]
|
|
256
276
|
}
|
|
257
277
|
},
|
|
258
278
|
"PureTypeDef": {
|
|
259
279
|
"description": "A reusable JSON Schema type definition for tooling only. No function, no runtime artifact. Referenced from state entries via $ref. Naming convention: PascalCase.",
|
|
260
280
|
"type": "object",
|
|
261
|
-
"required": [
|
|
281
|
+
"required": [
|
|
282
|
+
"type"
|
|
283
|
+
],
|
|
262
284
|
"properties": {
|
|
263
285
|
"type": {
|
|
264
286
|
"$ref": "#/$defs/JsonSchemaType"
|
|
@@ -303,10 +325,14 @@
|
|
|
303
325
|
"not": {
|
|
304
326
|
"anyOf": [
|
|
305
327
|
{
|
|
306
|
-
"required": [
|
|
328
|
+
"required": [
|
|
329
|
+
"default"
|
|
330
|
+
]
|
|
307
331
|
},
|
|
308
332
|
{
|
|
309
|
-
"required": [
|
|
333
|
+
"required": [
|
|
334
|
+
"$prototype"
|
|
335
|
+
]
|
|
310
336
|
}
|
|
311
337
|
]
|
|
312
338
|
}
|
|
@@ -314,7 +340,9 @@
|
|
|
314
340
|
"FunctionDef": {
|
|
315
341
|
"description": "A function declaration. $prototype must be \"Function\". body (inline) and $src (external) are mutually exclusive. First parameter is always state (the reactive scope).",
|
|
316
342
|
"type": "object",
|
|
317
|
-
"required": [
|
|
343
|
+
"required": [
|
|
344
|
+
"$prototype"
|
|
345
|
+
],
|
|
318
346
|
"properties": {
|
|
319
347
|
"$prototype": {
|
|
320
348
|
"type": "string",
|
|
@@ -343,7 +371,9 @@
|
|
|
343
371
|
]
|
|
344
372
|
},
|
|
345
373
|
"examples": [
|
|
346
|
-
[
|
|
374
|
+
[
|
|
375
|
+
"event"
|
|
376
|
+
],
|
|
347
377
|
[
|
|
348
378
|
{
|
|
349
379
|
"name": "event",
|
|
@@ -370,7 +400,10 @@
|
|
|
370
400
|
"$src": {
|
|
371
401
|
"description": "External module specifier. Mutually exclusive with body.",
|
|
372
402
|
"type": "string",
|
|
373
|
-
"examples": [
|
|
403
|
+
"examples": [
|
|
404
|
+
"./counter.js",
|
|
405
|
+
"npm:@myorg/validators"
|
|
406
|
+
]
|
|
374
407
|
},
|
|
375
408
|
"$export": {
|
|
376
409
|
"description": "Named export in $src module. Defaults to the state key name.",
|
|
@@ -395,7 +428,10 @@
|
|
|
395
428
|
"ClassDef": {
|
|
396
429
|
"description": "A .class.json schema-defined class. $prototype must be \"Class\". Defines fields, constructor, methods, and type parameters via $defs. Optionally points to a JS module via $implementation for hybrid execution.",
|
|
397
430
|
"type": "object",
|
|
398
|
-
"required": [
|
|
431
|
+
"required": [
|
|
432
|
+
"$prototype",
|
|
433
|
+
"title"
|
|
434
|
+
],
|
|
399
435
|
"properties": {
|
|
400
436
|
"$schema": {
|
|
401
437
|
"type": "string"
|
|
@@ -422,7 +458,9 @@
|
|
|
422
458
|
},
|
|
423
459
|
{
|
|
424
460
|
"type": "object",
|
|
425
|
-
"required": [
|
|
461
|
+
"required": [
|
|
462
|
+
"$ref"
|
|
463
|
+
],
|
|
426
464
|
"properties": {
|
|
427
465
|
"$ref": {
|
|
428
466
|
"type": "string"
|
|
@@ -478,7 +516,9 @@
|
|
|
478
516
|
"ClassParameterDef": {
|
|
479
517
|
"description": "A typed parameter definition for a class.",
|
|
480
518
|
"type": "object",
|
|
481
|
-
"required": [
|
|
519
|
+
"required": [
|
|
520
|
+
"identifier"
|
|
521
|
+
],
|
|
482
522
|
"properties": {
|
|
483
523
|
"identifier": {
|
|
484
524
|
"type": "string"
|
|
@@ -507,11 +547,18 @@
|
|
|
507
547
|
},
|
|
508
548
|
"access": {
|
|
509
549
|
"type": "string",
|
|
510
|
-
"enum": [
|
|
550
|
+
"enum": [
|
|
551
|
+
"public",
|
|
552
|
+
"private",
|
|
553
|
+
"protected"
|
|
554
|
+
]
|
|
511
555
|
},
|
|
512
556
|
"scope": {
|
|
513
557
|
"type": "string",
|
|
514
|
-
"enum": [
|
|
558
|
+
"enum": [
|
|
559
|
+
"instance",
|
|
560
|
+
"static"
|
|
561
|
+
]
|
|
515
562
|
},
|
|
516
563
|
"identifier": {
|
|
517
564
|
"type": "string"
|
|
@@ -549,7 +596,9 @@
|
|
|
549
596
|
"oneOf": [
|
|
550
597
|
{
|
|
551
598
|
"type": "object",
|
|
552
|
-
"required": [
|
|
599
|
+
"required": [
|
|
600
|
+
"$ref"
|
|
601
|
+
],
|
|
553
602
|
"properties": {
|
|
554
603
|
"$ref": {
|
|
555
604
|
"type": "string"
|
|
@@ -595,7 +644,10 @@
|
|
|
595
644
|
"properties": {
|
|
596
645
|
"role": {
|
|
597
646
|
"type": "string",
|
|
598
|
-
"enum": [
|
|
647
|
+
"enum": [
|
|
648
|
+
"method",
|
|
649
|
+
"accessor"
|
|
650
|
+
]
|
|
599
651
|
},
|
|
600
652
|
"$prototype": {
|
|
601
653
|
"type": "string",
|
|
@@ -603,11 +655,18 @@
|
|
|
603
655
|
},
|
|
604
656
|
"access": {
|
|
605
657
|
"type": "string",
|
|
606
|
-
"enum": [
|
|
658
|
+
"enum": [
|
|
659
|
+
"public",
|
|
660
|
+
"private",
|
|
661
|
+
"protected"
|
|
662
|
+
]
|
|
607
663
|
},
|
|
608
664
|
"scope": {
|
|
609
665
|
"type": "string",
|
|
610
|
-
"enum": [
|
|
666
|
+
"enum": [
|
|
667
|
+
"instance",
|
|
668
|
+
"static"
|
|
669
|
+
]
|
|
611
670
|
},
|
|
612
671
|
"identifier": {
|
|
613
672
|
"type": "string"
|
|
@@ -618,7 +677,9 @@
|
|
|
618
677
|
"oneOf": [
|
|
619
678
|
{
|
|
620
679
|
"type": "object",
|
|
621
|
-
"required": [
|
|
680
|
+
"required": [
|
|
681
|
+
"$ref"
|
|
682
|
+
],
|
|
622
683
|
"properties": {
|
|
623
684
|
"$ref": {
|
|
624
685
|
"type": "string"
|
|
@@ -673,7 +734,9 @@
|
|
|
673
734
|
"ExternalClassDef": {
|
|
674
735
|
"description": "An external class / data source. $prototype is a constructor name (not \"Function\"). When $prototype is not in the built-in registry, $src is required. All state entries are reactive by default.",
|
|
675
736
|
"type": "object",
|
|
676
|
-
"required": [
|
|
737
|
+
"required": [
|
|
738
|
+
"$prototype"
|
|
739
|
+
],
|
|
677
740
|
"properties": {
|
|
678
741
|
"$prototype": {
|
|
679
742
|
"description": "Constructor name — built-in Web API class or external class name.",
|
|
@@ -701,7 +764,11 @@
|
|
|
701
764
|
"$src": {
|
|
702
765
|
"description": "External module specifier. Required when $prototype is not a built-in.",
|
|
703
766
|
"type": "string",
|
|
704
|
-
"examples": [
|
|
767
|
+
"examples": [
|
|
768
|
+
"@jxplatform/md",
|
|
769
|
+
"./lib/my-parser.js",
|
|
770
|
+
"npm:@myorg/data"
|
|
771
|
+
]
|
|
705
772
|
},
|
|
706
773
|
"$export": {
|
|
707
774
|
"description": "Named export in $src module. Defaults to the $prototype value.",
|
|
@@ -709,7 +776,11 @@
|
|
|
709
776
|
},
|
|
710
777
|
"timing": {
|
|
711
778
|
"type": "string",
|
|
712
|
-
"enum": [
|
|
779
|
+
"enum": [
|
|
780
|
+
"compiler",
|
|
781
|
+
"server",
|
|
782
|
+
"client"
|
|
783
|
+
]
|
|
713
784
|
},
|
|
714
785
|
"manual": {
|
|
715
786
|
"type": "boolean"
|
|
@@ -723,7 +794,15 @@
|
|
|
723
794
|
},
|
|
724
795
|
"method": {
|
|
725
796
|
"type": "string",
|
|
726
|
-
"enum": [
|
|
797
|
+
"enum": [
|
|
798
|
+
"GET",
|
|
799
|
+
"POST",
|
|
800
|
+
"PUT",
|
|
801
|
+
"PATCH",
|
|
802
|
+
"DELETE",
|
|
803
|
+
"HEAD",
|
|
804
|
+
"OPTIONS"
|
|
805
|
+
]
|
|
727
806
|
},
|
|
728
807
|
"headers": {
|
|
729
808
|
"type": "object",
|
|
@@ -734,7 +813,14 @@
|
|
|
734
813
|
"body": {},
|
|
735
814
|
"responseType": {
|
|
736
815
|
"type": "string",
|
|
737
|
-
"enum": [
|
|
816
|
+
"enum": [
|
|
817
|
+
"json",
|
|
818
|
+
"text",
|
|
819
|
+
"blob",
|
|
820
|
+
"arraybuffer",
|
|
821
|
+
"document",
|
|
822
|
+
""
|
|
823
|
+
]
|
|
738
824
|
},
|
|
739
825
|
"key": {
|
|
740
826
|
"type": "string"
|
|
@@ -759,7 +845,11 @@
|
|
|
759
845
|
},
|
|
760
846
|
"sameSite": {
|
|
761
847
|
"type": "string",
|
|
762
|
-
"enum": [
|
|
848
|
+
"enum": [
|
|
849
|
+
"strict",
|
|
850
|
+
"lax",
|
|
851
|
+
"none"
|
|
852
|
+
]
|
|
763
853
|
},
|
|
764
854
|
"database": {
|
|
765
855
|
"type": "string"
|
|
@@ -781,7 +871,10 @@
|
|
|
781
871
|
"type": "array",
|
|
782
872
|
"items": {
|
|
783
873
|
"type": "object",
|
|
784
|
-
"required": [
|
|
874
|
+
"required": [
|
|
875
|
+
"name",
|
|
876
|
+
"keyPath"
|
|
877
|
+
],
|
|
785
878
|
"properties": {
|
|
786
879
|
"name": {
|
|
787
880
|
"type": "string"
|
|
@@ -828,7 +921,9 @@
|
|
|
828
921
|
"ElementDef": {
|
|
829
922
|
"description": "A Jx element definition. Maps directly to a DOM element.",
|
|
830
923
|
"type": "object",
|
|
831
|
-
"required": [
|
|
924
|
+
"required": [
|
|
925
|
+
"tagName"
|
|
926
|
+
],
|
|
832
927
|
"properties": {
|
|
833
928
|
"tagName": {
|
|
834
929
|
"$ref": "#/$defs/TagName"
|
|
@@ -862,7 +957,11 @@
|
|
|
862
957
|
},
|
|
863
958
|
"dir": {
|
|
864
959
|
"type": "string",
|
|
865
|
-
"enum": [
|
|
960
|
+
"enum": [
|
|
961
|
+
"ltr",
|
|
962
|
+
"rtl",
|
|
963
|
+
"auto"
|
|
964
|
+
]
|
|
866
965
|
},
|
|
867
966
|
"value": {
|
|
868
967
|
"$ref": "#/$defs/StringOrRef"
|
|
@@ -2130,7 +2229,11 @@
|
|
|
2130
2229
|
"ArrayNamespace": {
|
|
2131
2230
|
"description": "Dynamic mapped list. Re-renders when the items state entry changes.",
|
|
2132
2231
|
"type": "object",
|
|
2133
|
-
"required": [
|
|
2232
|
+
"required": [
|
|
2233
|
+
"$prototype",
|
|
2234
|
+
"items",
|
|
2235
|
+
"map"
|
|
2236
|
+
],
|
|
2134
2237
|
"properties": {
|
|
2135
2238
|
"$prototype": {
|
|
2136
2239
|
"type": "string",
|
|
@@ -2161,7 +2264,9 @@
|
|
|
2161
2264
|
"SwitchDef": {
|
|
2162
2265
|
"description": "Reactive $ref that drives which case to render.",
|
|
2163
2266
|
"type": "object",
|
|
2164
|
-
"required": [
|
|
2267
|
+
"required": [
|
|
2268
|
+
"$ref"
|
|
2269
|
+
],
|
|
2165
2270
|
"properties": {
|
|
2166
2271
|
"$ref": {
|
|
2167
2272
|
"$ref": "#/$defs/InternalRef"
|
|
@@ -2171,7 +2276,10 @@
|
|
|
2171
2276
|
},
|
|
2172
2277
|
"SwitchNode": {
|
|
2173
2278
|
"type": "object",
|
|
2174
|
-
"required": [
|
|
2279
|
+
"required": [
|
|
2280
|
+
"$switch",
|
|
2281
|
+
"cases"
|
|
2282
|
+
],
|
|
2175
2283
|
"properties": {
|
|
2176
2284
|
"tagName": {
|
|
2177
2285
|
"$ref": "#/$defs/TagName"
|
|
@@ -18483,7 +18591,9 @@
|
|
|
18483
18591
|
"RefObject": {
|
|
18484
18592
|
"description": "A $ref binding. Resolves to a state entry (reactive) or plain value (static).",
|
|
18485
18593
|
"type": "object",
|
|
18486
|
-
"required": [
|
|
18594
|
+
"required": [
|
|
18595
|
+
"$ref"
|
|
18596
|
+
],
|
|
18487
18597
|
"properties": {
|
|
18488
18598
|
"$ref": {
|
|
18489
18599
|
"$ref": "#/$defs/AnyRef"
|
|
@@ -18518,23 +18628,36 @@
|
|
|
18518
18628
|
"description": "Reference to a $defs type definition in the current component.",
|
|
18519
18629
|
"type": "string",
|
|
18520
18630
|
"pattern": "^#/\\$defs/",
|
|
18521
|
-
"examples": [
|
|
18631
|
+
"examples": [
|
|
18632
|
+
"#/$defs/Count",
|
|
18633
|
+
"#/$defs/TodoItem",
|
|
18634
|
+
"#/$defs/Status"
|
|
18635
|
+
]
|
|
18522
18636
|
},
|
|
18523
18637
|
"StateRef": {
|
|
18524
18638
|
"description": "Reference to a state entry (runtime variable) in the current component.",
|
|
18525
18639
|
"type": "string",
|
|
18526
18640
|
"pattern": "^#/state/",
|
|
18527
|
-
"examples": [
|
|
18641
|
+
"examples": [
|
|
18642
|
+
"#/state/count",
|
|
18643
|
+
"#/state/addTask",
|
|
18644
|
+
"#/state/items"
|
|
18645
|
+
]
|
|
18528
18646
|
},
|
|
18529
18647
|
"ExternalRef": {
|
|
18530
18648
|
"description": "Reference to an external Jx component file.",
|
|
18531
18649
|
"type": "string",
|
|
18532
18650
|
"pattern": "^(\\./|\\.\\./).*\\.json$|^https?://",
|
|
18533
|
-
"examples": [
|
|
18651
|
+
"examples": [
|
|
18652
|
+
"./card.json",
|
|
18653
|
+
"https://cdn.example.com/button.json"
|
|
18654
|
+
]
|
|
18534
18655
|
},
|
|
18535
18656
|
"ExternalComponentRef": {
|
|
18536
18657
|
"type": "object",
|
|
18537
|
-
"required": [
|
|
18658
|
+
"required": [
|
|
18659
|
+
"$ref"
|
|
18660
|
+
],
|
|
18538
18661
|
"properties": {
|
|
18539
18662
|
"$ref": {
|
|
18540
18663
|
"$ref": "#/$defs/ExternalRef"
|
|
@@ -18548,19 +18671,30 @@
|
|
|
18548
18671
|
"description": "Reference to a window or document global.",
|
|
18549
18672
|
"type": "string",
|
|
18550
18673
|
"pattern": "^(window|document)#/",
|
|
18551
|
-
"examples": [
|
|
18674
|
+
"examples": [
|
|
18675
|
+
"window#/currentUser",
|
|
18676
|
+
"document#/appConfig"
|
|
18677
|
+
]
|
|
18552
18678
|
},
|
|
18553
18679
|
"ParentRef": {
|
|
18554
18680
|
"description": "Reference to a named state entry passed via $props from a parent component.",
|
|
18555
18681
|
"type": "string",
|
|
18556
18682
|
"pattern": "^parent#/",
|
|
18557
|
-
"examples": [
|
|
18683
|
+
"examples": [
|
|
18684
|
+
"parent#/sharedState",
|
|
18685
|
+
"parent#/theme"
|
|
18686
|
+
]
|
|
18558
18687
|
},
|
|
18559
18688
|
"MapRef": {
|
|
18560
18689
|
"description": "Reference to the current Array map iteration context.",
|
|
18561
18690
|
"type": "string",
|
|
18562
18691
|
"pattern": "^\\$map/(item|index)(/.*)?$",
|
|
18563
|
-
"examples": [
|
|
18692
|
+
"examples": [
|
|
18693
|
+
"$map/item",
|
|
18694
|
+
"$map/index",
|
|
18695
|
+
"$map/item/text",
|
|
18696
|
+
"$map/item/done"
|
|
18697
|
+
]
|
|
18564
18698
|
},
|
|
18565
18699
|
"ElementPropertyValue": {
|
|
18566
18700
|
"oneOf": [
|
|
@@ -18614,7 +18748,9 @@
|
|
|
18614
18748
|
"CemParameter": {
|
|
18615
18749
|
"description": "A CEM-compatible parameter definition for a function. Follows the Custom Elements Manifest Parameter shape.",
|
|
18616
18750
|
"type": "object",
|
|
18617
|
-
"required": [
|
|
18751
|
+
"required": [
|
|
18752
|
+
"name"
|
|
18753
|
+
],
|
|
18618
18754
|
"properties": {
|
|
18619
18755
|
"name": {
|
|
18620
18756
|
"description": "Parameter name.",
|
|
@@ -18639,7 +18775,9 @@
|
|
|
18639
18775
|
"CemEvent": {
|
|
18640
18776
|
"description": "A CEM-compatible event definition. Describes a CustomEvent the function dispatches.",
|
|
18641
18777
|
"type": "object",
|
|
18642
|
-
"required": [
|
|
18778
|
+
"required": [
|
|
18779
|
+
"name"
|
|
18780
|
+
],
|
|
18643
18781
|
"properties": {
|
|
18644
18782
|
"name": {
|
|
18645
18783
|
"description": "Event name (e.g. 'task-toggled').",
|
|
@@ -18885,7 +19023,15 @@
|
|
|
18885
19023
|
},
|
|
18886
19024
|
"JsonSchemaType": {
|
|
18887
19025
|
"type": "string",
|
|
18888
|
-
"enum": [
|
|
19026
|
+
"enum": [
|
|
19027
|
+
"string",
|
|
19028
|
+
"number",
|
|
19029
|
+
"integer",
|
|
19030
|
+
"boolean",
|
|
19031
|
+
"array",
|
|
19032
|
+
"object",
|
|
19033
|
+
"null"
|
|
19034
|
+
]
|
|
18889
19035
|
}
|
|
18890
19036
|
}
|
|
18891
|
-
}
|
|
19037
|
+
}
|