@toa.io/norm 0.10.0-dev.1 → 0.10.0-dev.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toa.io/norm",
|
|
3
|
-
"version": "0.10.0-dev.
|
|
3
|
+
"version": "0.10.0-dev.2",
|
|
4
4
|
"description": "Toa declarations normalization and validation",
|
|
5
5
|
"author": "temich <tema.gurtovoy@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/toa-io/toa#readme",
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@toa.io/mock": "0.7.6-dev.
|
|
22
|
+
"@toa.io/mock": "0.7.6-dev.2"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@toa.io/core": "0.8.0",
|
|
26
|
-
"@toa.io/generic": "0.
|
|
27
|
-
"@toa.io/schema": "0.7.3-dev.
|
|
28
|
-
"@toa.io/schemas": "0.8.1-dev.
|
|
29
|
-
"@toa.io/yaml": "0.7.
|
|
25
|
+
"@toa.io/core": "0.8.1-dev.0",
|
|
26
|
+
"@toa.io/generic": "0.9.0-dev.0",
|
|
27
|
+
"@toa.io/schema": "0.7.3-dev.1",
|
|
28
|
+
"@toa.io/schemas": "0.8.1-dev.1",
|
|
29
|
+
"@toa.io/yaml": "0.7.3-dev.0"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "8b2892693c2a83597fe450d66bc616ba7c63a61e"
|
|
32
32
|
}
|
|
@@ -106,15 +106,6 @@ describe('entity', () => {
|
|
|
106
106
|
expect(manifest.entity.schema.type).toBe('object')
|
|
107
107
|
})
|
|
108
108
|
|
|
109
|
-
it('should forbid additional properties', () => {
|
|
110
|
-
manifest.entity.schema = { additionalProperties: true }
|
|
111
|
-
expect(() => validate(manifest)).toThrow(/must be equal to constant 'false'/)
|
|
112
|
-
|
|
113
|
-
manifest.entity.schema = {}
|
|
114
|
-
validate(manifest)
|
|
115
|
-
expect(manifest.entity.schema.additionalProperties).toBe(false)
|
|
116
|
-
})
|
|
117
|
-
|
|
118
109
|
it('should have property names matching token pattern', () => {
|
|
119
110
|
manifest.entity.schema.properties._foo = { type: 'string' }
|
|
120
111
|
expect(() => validate(manifest)).toThrow(/pattern/)
|