@trayio/tray-schema 4.5.0 → 4.7.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TJSTraySchemaGenerator.d.ts","sourceRoot":"","sources":["../../src/schema/TJSTraySchemaGenerator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAe,MAAM,cAAc,CAAC;AAEnD,OAAO,EAEN,aAAa,EAEb,MAAM,yCAAyC,CAAC;AAEjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,qBAAa,sBAAuB,YAAW,mBAAmB;IACjE,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,aAAa,CAAC;IA2C1E,sBAAsB,CAAC,MAAM,EAAE,aAAa,GAAG,aAAa;
|
|
1
|
+
{"version":3,"file":"TJSTraySchemaGenerator.d.ts","sourceRoot":"","sources":["../../src/schema/TJSTraySchemaGenerator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAe,MAAM,cAAc,CAAC;AAEnD,OAAO,EAEN,aAAa,EAEb,MAAM,yCAAyC,CAAC;AAEjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,qBAAa,sBAAuB,YAAW,mBAAmB;IACjE,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,aAAa,CAAC;IA2C1E,sBAAsB,CAAC,MAAM,EAAE,aAAa,GAAG,aAAa;CA8J5D"}
|
|
@@ -179,11 +179,13 @@ class TJSTraySchemaGenerator {
|
|
|
179
179
|
object.type = 'object';
|
|
180
180
|
object.tag = 'DynamicObject';
|
|
181
181
|
object.properties = {};
|
|
182
|
+
object.additionalProperties = false;
|
|
182
183
|
break;
|
|
183
184
|
case 'DynamicSchema':
|
|
184
185
|
object.type = 'object';
|
|
185
186
|
object.tag = 'DynamicSchema';
|
|
186
187
|
object.properties = {};
|
|
188
|
+
object.additionalProperties = false;
|
|
187
189
|
break;
|
|
188
190
|
default:
|
|
189
191
|
break;
|
|
@@ -505,6 +505,7 @@ describe('TJSTraySchemaGenerator', () => {
|
|
|
505
505
|
tag: 'DynamicSchema',
|
|
506
506
|
properties: {},
|
|
507
507
|
advanced: [],
|
|
508
|
+
additionalProperties: false,
|
|
508
509
|
},
|
|
509
510
|
obj: {
|
|
510
511
|
type: 'object',
|
|
@@ -512,6 +513,7 @@ describe('TJSTraySchemaGenerator', () => {
|
|
|
512
513
|
tag: 'DynamicObject',
|
|
513
514
|
properties: {},
|
|
514
515
|
advanced: [],
|
|
516
|
+
additionalProperties: false,
|
|
515
517
|
},
|
|
516
518
|
nested: {
|
|
517
519
|
type: 'object',
|
|
@@ -521,6 +523,7 @@ describe('TJSTraySchemaGenerator', () => {
|
|
|
521
523
|
tag: 'DynamicSchema',
|
|
522
524
|
properties: {},
|
|
523
525
|
advanced: [],
|
|
526
|
+
additionalProperties: false,
|
|
524
527
|
},
|
|
525
528
|
nestedObj: {
|
|
526
529
|
type: 'object',
|
|
@@ -528,6 +531,7 @@ describe('TJSTraySchemaGenerator', () => {
|
|
|
528
531
|
tag: 'DynamicObject',
|
|
529
532
|
properties: {},
|
|
530
533
|
advanced: [],
|
|
534
|
+
additionalProperties: false,
|
|
531
535
|
},
|
|
532
536
|
nestedConstProp: {
|
|
533
537
|
type: 'string',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trayio/tray-schema",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.0",
|
|
4
4
|
"description": "Schema for Tray connectors and authentications",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./*": "./dist/*.js"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@trayio/commons": "4.
|
|
14
|
+
"@trayio/commons": "4.7.0",
|
|
15
15
|
"@types/node": "18.11.9",
|
|
16
16
|
"lodash": "4.17.21",
|
|
17
17
|
"typescript-json-schema": "0.62.0"
|