@toa.io/norm 1.0.0-alpha.12 → 1.0.0-alpha.14

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": "1.0.0-alpha.12",
3
+ "version": "1.0.0-alpha.14",
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",
@@ -20,11 +20,11 @@
20
20
  "test": "echo \"Error: run tests from root\" && exit 1"
21
21
  },
22
22
  "dependencies": {
23
- "@toa.io/core": "1.0.0-alpha.12",
24
- "@toa.io/generic": "1.0.0-alpha.12",
25
- "@toa.io/schema": "1.0.0-alpha.12",
26
- "@toa.io/schemas": "1.0.0-alpha.12",
27
- "@toa.io/yaml": "1.0.0-alpha.12"
23
+ "@toa.io/core": "1.0.0-alpha.14",
24
+ "@toa.io/generic": "1.0.0-alpha.14",
25
+ "@toa.io/schema": "1.0.0-alpha.14",
26
+ "@toa.io/schemas": "1.0.0-alpha.14",
27
+ "@toa.io/yaml": "1.0.0-alpha.14"
28
28
  },
29
- "gitHead": "897206fbcf724fa88f427b6aee35bff571b2a3a1"
29
+ "gitHead": "8aa52cb97021695885c8dbe64beca26c9665fc8f"
30
30
  }
@@ -79,7 +79,7 @@ properties:
79
79
  propertyNames:
80
80
  oneOf:
81
81
  - $ref: '#/definitions/name'
82
- - enum: [_version]
82
+ - enum: [_version, _created, _updated, _deleted]
83
83
  unique:
84
84
  type: object
85
85
  patternProperties:
@@ -11,6 +11,7 @@ properties:
11
11
  type: string
12
12
  packages:
13
13
  type: string
14
+ default: components/*
14
15
  build:
15
16
  type: object
16
17
  properties:
@@ -64,5 +65,5 @@ properties:
64
65
  required: [name, components]
65
66
  annotations:
66
67
  type: object
67
- required: [runtime, name, packages, registry]
68
+ required: [runtime, name, registry]
68
69
  additionalProperties: false
@@ -72,9 +72,10 @@ it('should require name as label', () => {
72
72
  expect(() => validate(context)).not.toThrow(/pattern/)
73
73
  })
74
74
 
75
- it('should require packages location', () => {
75
+ it('should set default packages location', () => {
76
76
  delete context.packages
77
- expect(() => validate(context)).toThrow(/required/)
77
+ expect(() => validate(context)).not.toThrow()
78
+ expect(context.packages).toBe('components/*')
78
79
  })
79
80
 
80
81
  it('should require registry url', () => {