@onlineapps/cookbook-core 2.1.10 → 2.1.11

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": "@onlineapps/cookbook-core",
3
- "version": "2.1.10",
3
+ "version": "2.1.11",
4
4
  "description": "Core cookbook parsing and validation - lightweight foundation for workflow definitions",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$comment": "COOKBOOK V2 FORMAT - V1 IS BANNED! steps MUST be object keyed by step_id, NOT array!",
3
+ "$comment": "COOKBOOK V2.1 FORMAT - steps MUST be ARRAY with step_id!",
4
4
  "type": "object",
5
5
  "required": ["steps", "version"],
6
6
  "additionalProperties": true,
@@ -12,7 +12,7 @@
12
12
  "version": {
13
13
  "type": "string",
14
14
  "pattern": "^2\\.\\d+\\.\\d+$",
15
- "description": "Semantic version - MUST be 2.x.x (V1 is banned)"
15
+ "description": "Semantic version - MUST be 2.1.x or higher"
16
16
  },
17
17
  "description": {
18
18
  "type": "string"
@@ -38,12 +38,12 @@
38
38
  "additionalProperties": true
39
39
  },
40
40
  "steps": {
41
- "type": "object",
42
- "minProperties": 1,
43
- "additionalProperties": {
41
+ "type": "array",
42
+ "minItems": 1,
43
+ "items": {
44
44
  "$ref": "#/definitions/Step"
45
45
  },
46
- "description": "V2: Object keyed by step_id (NOT array!)"
46
+ "description": "V2.1: Array of steps with step_id (guaranteed order)"
47
47
  },
48
48
  "delivery": {
49
49
  "type": "object",