@toa.io/norm 1.0.0-alpha.16 → 1.0.0-alpha.17

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.16",
3
+ "version": "1.0.0-alpha.17",
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.16",
24
- "@toa.io/generic": "1.0.0-alpha.16",
25
- "@toa.io/schema": "1.0.0-alpha.16",
26
- "@toa.io/schemas": "1.0.0-alpha.16",
27
- "@toa.io/yaml": "1.0.0-alpha.16"
23
+ "@toa.io/core": "1.0.0-alpha.17",
24
+ "@toa.io/generic": "1.0.0-alpha.17",
25
+ "@toa.io/schema": "1.0.0-alpha.17",
26
+ "@toa.io/schemas": "1.0.0-alpha.17",
27
+ "@toa.io/yaml": "1.0.0-alpha.17"
28
28
  },
29
- "gitHead": "6929dc2b2092a820b5fd023d99ec4249ccd115e4"
29
+ "gitHead": "40ea6c9695dc6b8dc434cad4eb413d7477238ac5"
30
30
  }
@@ -96,7 +96,7 @@ properties:
96
96
  '.*':
97
97
  type: string
98
98
  enum: [asc, desc, hash]
99
- dependent:
99
+ associated:
100
100
  type: boolean
101
101
  default: false
102
102
  custom:
@@ -112,15 +112,18 @@ describe('entity', () => {
112
112
  })
113
113
 
114
114
  it('should allow default id', () => {
115
- manifest.entity.schema.properties.id = { type: 'string', pattern: '^[a-fA-F0-9]+$' }
115
+ manifest.entity.schema.properties.id = {
116
+ type: 'string',
117
+ pattern: '^[a-fA-F0-9]+$'
118
+ }
116
119
  expect(() => validate(manifest)).not.toThrow()
117
120
  })
118
121
  })
119
122
 
120
- describe('dependent', () => {
123
+ describe('associated', () => {
121
124
  it('should provide default', () => {
122
125
  expect(() => validate(manifest)).not.toThrow()
123
- expect(manifest.entity.dependent).toBe(false)
126
+ expect(manifest.entity.associated).toBe(false)
124
127
  })
125
128
  })
126
129
  })
@@ -37,7 +37,7 @@ type Receiver = {
37
37
  type Entity = {
38
38
  schema: Object
39
39
  storage?: string
40
- dependent?: boolean
40
+ associated?: boolean
41
41
  }
42
42
 
43
43
  type Declaration = {