@toa.io/norm 1.1.0-canary.0 → 1.1.0-canary.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": "1.1.0-canary.0",
3
+ "version": "1.1.0-canary.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.9-canary.0"
22
+ "@toa.io/mock": "0.8.0-canary.2"
23
23
  },
24
24
  "dependencies": {
25
- "@toa.io/core": "1.1.0-canary.0",
26
- "@toa.io/generic": "0.11.0-canary.0",
27
- "@toa.io/schema": "0.7.6-canary.0",
28
- "@toa.io/schemas": "0.8.4-canary.0",
29
- "@toa.io/yaml": "0.7.6-canary.0"
25
+ "@toa.io/core": "1.1.0-canary.2",
26
+ "@toa.io/generic": "0.11.0-canary.2",
27
+ "@toa.io/schema": "0.8.0-canary.2",
28
+ "@toa.io/schemas": "0.9.0-canary.2",
29
+ "@toa.io/yaml": "0.8.0-canary.2"
30
30
  },
31
- "gitHead": "0adb45e6d6d309b21b976d257ac0a4fc48d866b3"
31
+ "gitHead": "a80d81d4d9da9fec07606154c959dd6512de4c76"
32
32
  }
@@ -11,6 +11,11 @@ properties:
11
11
  type: string
12
12
  packages:
13
13
  type: string
14
+ build:
15
+ type: object
16
+ properties:
17
+ command:
18
+ type: string
14
19
  runtime:
15
20
  type: object
16
21
  properties:
@@ -22,7 +27,7 @@ properties:
22
27
  proxy:
23
28
  type: string
24
29
  format: uri
25
- required: [ version ]
30
+ required: [version]
26
31
  environment:
27
32
  type: string
28
33
  registry:
@@ -40,7 +45,7 @@ properties:
40
45
  - linux/amd64
41
46
  - linux/arm/v7
42
47
  - linux/arm64
43
- required: [ base, platforms ]
48
+ required: [base, platforms]
44
49
  compositions:
45
50
  type: array
46
51
  minItems: 1
@@ -54,8 +59,8 @@ properties:
54
59
  minItems: 1
55
60
  items:
56
61
  $ref: 'definitions#/definitions/locator'
57
- required: [ name, components ]
62
+ required: [name, components]
58
63
  annotations:
59
64
  type: object
60
- required: [ runtime, name, packages, registry ]
65
+ required: [runtime, name, packages, registry]
61
66
  additionalProperties: false
@@ -8,6 +8,9 @@ const context = {
8
8
  description: 'context fixture',
9
9
  version: '0.0.0',
10
10
  packages: 'namespaces/**/*',
11
+ build: {
12
+ command: 'echo test'
13
+ },
11
14
  registry: {
12
15
  base: 'localhost:5000',
13
16
  platforms: ['linux/amd64', 'linux/arm/v7', 'linux/arm64']
@@ -14,6 +14,10 @@ declare namespace toa.norm {
14
14
  interface Registry {
15
15
  base?: string
16
16
  platforms?: string[] | null
17
+ build?: {
18
+ command?: string
19
+ arguments?: string[]
20
+ }
17
21
  }
18
22
 
19
23
  interface Composition {