@kubun/protocol 0.3.2 → 0.3.4
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/lib/models/cluster.d.ts +87 -9
- package/lib/models/cluster.d.ts.map +1 -1
- package/lib/models/cluster.js +9 -4
- package/lib/models/document.d.ts +266 -14
- package/lib/models/document.d.ts.map +1 -1
- package/lib/models/json-schema.d.ts +78 -4
- package/lib/models/json-schema.d.ts.map +1 -1
- package/lib/models/json-schema.js +26 -1
- package/lib/services/graph.d.ts +342 -18
- package/lib/services/graph.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -228,6 +228,7 @@ export const arrayModel = {
|
|
|
228
228
|
},
|
|
229
229
|
required: [
|
|
230
230
|
'type',
|
|
231
|
+
'title',
|
|
231
232
|
'items'
|
|
232
233
|
],
|
|
233
234
|
additionalProperties: false
|
|
@@ -276,10 +277,34 @@ export const objectModel = {
|
|
|
276
277
|
],
|
|
277
278
|
additionalProperties: false
|
|
278
279
|
};
|
|
280
|
+
export const jsonObjectModel = {
|
|
281
|
+
type: 'object',
|
|
282
|
+
properties: {
|
|
283
|
+
type: {
|
|
284
|
+
type: 'string',
|
|
285
|
+
const: 'object'
|
|
286
|
+
},
|
|
287
|
+
title: {
|
|
288
|
+
type: 'string',
|
|
289
|
+
const: 'JSONObject'
|
|
290
|
+
},
|
|
291
|
+
additionalProperties: {
|
|
292
|
+
type: 'boolean',
|
|
293
|
+
const: true
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
required: [
|
|
297
|
+
'type',
|
|
298
|
+
'title',
|
|
299
|
+
'additionalProperties'
|
|
300
|
+
],
|
|
301
|
+
additionalProperties: false
|
|
302
|
+
};
|
|
279
303
|
export const shapeModel = {
|
|
280
304
|
anyOf: [
|
|
281
305
|
arrayModel,
|
|
282
|
-
objectModel
|
|
306
|
+
objectModel,
|
|
307
|
+
jsonObjectModel
|
|
283
308
|
]
|
|
284
309
|
};
|
|
285
310
|
export const typeModel = {
|