@soustack/spec 0.0.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.
Files changed (92) hide show
  1. package/LICENSE +121 -0
  2. package/README.md +275 -0
  3. package/SOUSTACK_SPEC_VERSION +1 -0
  4. package/SPEC.md +226 -0
  5. package/defs/common.schema.json +46 -0
  6. package/defs/duration.schema.json +33 -0
  7. package/defs/entities.schema.json +111 -0
  8. package/defs/ingredientQuantified.schema.json +9 -0
  9. package/defs/quantity.schema.json +16 -0
  10. package/defs/scalingRule.schema.json +127 -0
  11. package/defs/temperature.schema.json +63 -0
  12. package/dist/index.d.ts +4 -0
  13. package/dist/index.d.ts.map +1 -0
  14. package/dist/index.js +4 -0
  15. package/dist/index.js.map +1 -0
  16. package/fixtures/content/illustrated-step.valid.json +24 -0
  17. package/fixtures/invalid/equipment-unknown-reference.invalid.json +38 -0
  18. package/fixtures/invalid/mise-en-place-unknown-equipment.invalid.json +37 -0
  19. package/fixtures/invalid/mise-en-place-unknown-input.invalid.json +41 -0
  20. package/fixtures/invalid/storage-leftovers-missing-method.invalid.json +31 -0
  21. package/fixtures/invalid/storage-leftovers-wrong-type.invalid.json +23 -0
  22. package/fixtures/level/base-full.valid.json +162 -0
  23. package/fixtures/level/base-missing-yield.invalid.json +12 -0
  24. package/fixtures/level/lite-min.valid.json +14 -0
  25. package/fixtures/profile/profile-base.valid.json +20 -0
  26. package/fixtures/profile/profile-equipped.valid.json +28 -0
  27. package/fixtures/profile/profile-illustrated.valid.json +28 -0
  28. package/fixtures/profile/profile-lite.valid.json +13 -0
  29. package/fixtures/profile/profile-prepped.valid.json +31 -0
  30. package/fixtures/profile/profile-scalable-missing-scaling.invalid.json +29 -0
  31. package/fixtures/profile/profile-scalable.valid.json +49 -0
  32. package/fixtures/profile/profile-timed-missing-structured.invalid.json +30 -0
  33. package/fixtures/scaling/bakers-percent-missing-ref.invalid.json +41 -0
  34. package/fixtures/scaling/bakers-percent.valid.json +51 -0
  35. package/fixtures/scaling/discrete-range.invalid.json +36 -0
  36. package/fixtures/scaling/missing-quantified.invalid.json +40 -0
  37. package/fixtures/scaling/reject-bakersPercentage.invalid.json +50 -0
  38. package/fixtures/stacks/compute-missing-timed.invalid.json +32 -0
  39. package/fixtures/stacks/dietary-no-signal.invalid.json +16 -0
  40. package/fixtures/stacks/illustrated-empty.invalid.json +13 -0
  41. package/fixtures/stacks/quantified-string.invalid.json +22 -0
  42. package/fixtures/stacks/referenced-missing-input.invalid.json +32 -0
  43. package/fixtures/stacks/storage-min.valid.json +20 -0
  44. package/fixtures/stacks/storage-no-duration.invalid.json +16 -0
  45. package/fixtures/stacks/timed-implies-structured.valid.json +50 -0
  46. package/fixtures/stacks/timed-range.invalid.json +33 -0
  47. package/fixtures/valid/equipment-scaling-rules.valid.json +76 -0
  48. package/fixtures/valid/equipment-strings.valid.json +31 -0
  49. package/fixtures/valid/equipment-structured-uses.valid.json +47 -0
  50. package/fixtures/valid/mise-en-place-basic.valid.json +31 -0
  51. package/fixtures/valid/mise-en-place-referenced-equipment.valid.json +51 -0
  52. package/fixtures/valid/prep-ingredient-strings.valid.json +48 -0
  53. package/fixtures/valid/prep-ingredient-structured.valid.json +45 -0
  54. package/fixtures/valid/profile-equipped.valid.json +29 -0
  55. package/fixtures/valid/profile-prepped.valid.json +32 -0
  56. package/fixtures/valid/quantified-nested-ingredient-sections.valid.json +61 -0
  57. package/fixtures/valid/referenced-scaling.valid.json +67 -0
  58. package/fixtures/valid/storage-leftovers-simple.valid.json +27 -0
  59. package/fixtures/valid/storage-leftovers-structured.valid.json +43 -0
  60. package/fixtures/valid/structured-nested-step-sections.valid.json +84 -0
  61. package/package.json +54 -0
  62. package/schemas/stacks-registry.schema.json +108 -0
  63. package/soustack.schema.json +2379 -0
  64. package/src/index.js +3 -0
  65. package/src/index.ts +3 -0
  66. package/stacks/compute.schema.json +7 -0
  67. package/stacks/compute@1.md +22 -0
  68. package/stacks/dietary.schema.json +45 -0
  69. package/stacks/dietary@1.md +24 -0
  70. package/stacks/equipment.schema.json +98 -0
  71. package/stacks/equipment@1.md +244 -0
  72. package/stacks/illustrated.schema.json +54 -0
  73. package/stacks/illustrated@1.md +24 -0
  74. package/stacks/prep.schema.json +76 -0
  75. package/stacks/prep@1.md +276 -0
  76. package/stacks/quantified.schema.json +74 -0
  77. package/stacks/quantified@1.md +24 -0
  78. package/stacks/referenced.schema.json +96 -0
  79. package/stacks/referenced@1.md +23 -0
  80. package/stacks/registry.json +112 -0
  81. package/stacks/scaling.schema.json +99 -0
  82. package/stacks/scaling@1.md +238 -0
  83. package/stacks/storage.schema.json +132 -0
  84. package/stacks/storage@1.md +256 -0
  85. package/stacks/structured.schema.json +48 -0
  86. package/stacks/structured@1.md +24 -0
  87. package/stacks/substitutions.schema.json +43 -0
  88. package/stacks/substitutions@1.md +24 -0
  89. package/stacks/techniques.schema.json +28 -0
  90. package/stacks/techniques@1.md +23 -0
  91. package/stacks/timed.schema.json +60 -0
  92. package/stacks/timed@1.md +23 -0
@@ -0,0 +1,33 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://spec.soustack.org/defs/duration.schema.json",
4
+ "title": "Durations",
5
+ "type": "object",
6
+ "properties": {
7
+ "DurationMinutes": {
8
+ "type": "object",
9
+ "properties": {
10
+ "minutes": { "type": "number", "exclusiveMinimum": 0 },
11
+ "metadata": { "type": "object", "additionalProperties": true }
12
+ },
13
+ "required": ["minutes"],
14
+ "additionalProperties": false,
15
+ "patternProperties": {
16
+ "^x-": { "$ref": "./common.schema.json#/properties/extensionLaneValue" }
17
+ }
18
+ },
19
+ "StorageDuration": {
20
+ "type": "object",
21
+ "properties": {
22
+ "iso8601": { "type": "string", "pattern": "^P" },
23
+ "metadata": { "type": "object", "additionalProperties": true }
24
+ },
25
+ "required": ["iso8601"],
26
+ "additionalProperties": false,
27
+ "patternProperties": {
28
+ "^x-": { "$ref": "./common.schema.json#/properties/extensionLaneValue" }
29
+ }
30
+ }
31
+ },
32
+ "additionalProperties": false
33
+ }
@@ -0,0 +1,111 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://spec.soustack.org/defs/entities.schema.json",
4
+ "title": "Soustack entity bases",
5
+ "type": "object",
6
+ "$defs": {
7
+ "IngredientBase": {
8
+ "type": "object",
9
+ "properties": {
10
+ "id": { "type": "string" },
11
+ "name": { "type": "string" },
12
+ "quantity": { "$ref": "./quantity.schema.json" },
13
+ "temperature": { "$ref": "./temperature.schema.json" },
14
+ "notes": { "type": "string" },
15
+ "prep": {
16
+ "oneOf": [
17
+ { "type": "string", "minLength": 1 },
18
+ {
19
+ "type": "array",
20
+ "minItems": 1,
21
+ "items": {
22
+ "anyOf": [
23
+ { "type": "string", "minLength": 1 },
24
+ { "$ref": "../stacks/prep.schema.json#/$defs/prepItem" }
25
+ ]
26
+ }
27
+ }
28
+ ]
29
+ },
30
+ "metadata": { "type": "object", "additionalProperties": true },
31
+ "scaling": { "$ref": "./scalingRule.schema.json" }
32
+ },
33
+ "required": ["name"],
34
+ "additionalProperties": false,
35
+ "patternProperties": {
36
+ "^x-": { "$ref": "./common.schema.json#/properties/extensionLaneValue" }
37
+ }
38
+ },
39
+ "StepBase": {
40
+ "type": "object",
41
+ "properties": {
42
+ "id": { "type": "string" },
43
+ "text": { "type": "string" },
44
+ "dependsOn": {
45
+ "type": "array",
46
+ "items": { "type": "string" },
47
+ "uniqueItems": true
48
+ },
49
+ "inputs": {
50
+ "type": "array",
51
+ "items": { "type": "string" },
52
+ "uniqueItems": true
53
+ },
54
+ "techniqueIds": {
55
+ "type": "array",
56
+ "items": { "type": "string" },
57
+ "uniqueItems": true
58
+ },
59
+ "usesEquipment": {
60
+ "type": "array",
61
+ "items": {
62
+ "type": "string",
63
+ "pattern": "^[A-Za-z0-9._-]+$"
64
+ },
65
+ "uniqueItems": true
66
+ },
67
+ "temperature": { "$ref": "./temperature.schema.json" },
68
+ "timing": {
69
+ "type": "object",
70
+ "properties": {
71
+ "activity": { "type": "string", "enum": ["active", "passive"] },
72
+ "duration": {
73
+ "type": "object",
74
+ "oneOf": [
75
+ { "$ref": "./duration.schema.json#/properties/DurationMinutes" },
76
+ {
77
+ "type": "object",
78
+ "properties": {
79
+ "minMinutes": { "type": "number", "exclusiveMinimum": 0 },
80
+ "maxMinutes": { "type": "number", "exclusiveMinimum": 0 }
81
+ },
82
+ "required": ["minMinutes", "maxMinutes"],
83
+ "additionalProperties": false
84
+ }
85
+ ]
86
+ },
87
+ "completionCue": { "type": "string" },
88
+ "metadata": { "type": "object", "additionalProperties": true }
89
+ },
90
+ "anyOf": [
91
+ { "required": ["duration"] },
92
+ { "required": ["completionCue"] }
93
+ ],
94
+ "additionalProperties": false,
95
+ "patternProperties": {
96
+ "^x-": { "$ref": "./common.schema.json#/properties/extensionLaneValue" }
97
+ }
98
+ },
99
+ "images": { "type": "array", "items": { "$ref": "./common.schema.json#/properties/uri" } },
100
+ "videos": { "type": "array", "items": { "$ref": "./common.schema.json#/properties/uri" } },
101
+ "metadata": { "type": "object", "additionalProperties": true }
102
+ },
103
+ "required": ["text"],
104
+ "additionalProperties": false,
105
+ "patternProperties": {
106
+ "^x-": { "$ref": "./common.schema.json#/properties/extensionLaneValue" }
107
+ }
108
+ }
109
+ },
110
+ "additionalProperties": false
111
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://spec.soustack.org/defs/ingredientQuantified.schema.json",
4
+ "title": "Quantified Ingredient",
5
+ "allOf": [
6
+ { "$ref": "./entities.schema.json#/$defs/IngredientBase" },
7
+ { "required": ["id", "quantity"] }
8
+ ]
9
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://spec.soustack.org/defs/quantity.schema.json",
4
+ "title": "Quantity",
5
+ "type": "object",
6
+ "properties": {
7
+ "amount": { "type": "number" },
8
+ "unit": { "type": "string", "minLength": 1 },
9
+ "metadata": { "type": "object", "additionalProperties": true }
10
+ },
11
+ "required": ["amount", "unit"],
12
+ "additionalProperties": false,
13
+ "patternProperties": {
14
+ "^x-": { "$ref": "./common.schema.json#/properties/extensionLaneValue" }
15
+ }
16
+ }
@@ -0,0 +1,127 @@
1
+ {
2
+ "$id": "https://spec.soustack.org/defs/scalingRule.schema.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "title": "Soustack ScalingRule",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["mode"],
8
+ "properties": {
9
+ "mode": {
10
+ "type": "string",
11
+ "enum": ["linear", "fixed", "discrete", "toTaste", "bakersPercent"]
12
+ },
13
+
14
+ "step": {
15
+ "type": "number",
16
+ "exclusiveMinimum": 0
17
+ },
18
+ "rounding": {
19
+ "type": "string",
20
+ "enum": ["nearest", "ceil", "floor"]
21
+ },
22
+ "min": {
23
+ "type": "number"
24
+ },
25
+ "max": {
26
+ "type": "number"
27
+ },
28
+
29
+ "percent": {
30
+ "type": "number",
31
+ "exclusiveMinimum": 0
32
+ },
33
+ "of": {
34
+ "type": "string",
35
+ "minLength": 1
36
+ }
37
+
38
+ },
39
+
40
+ "allOf": [
41
+ {
42
+ "if": {
43
+ "properties": { "mode": { "const": "linear" } },
44
+ "required": ["mode"]
45
+ },
46
+ "then": {
47
+ "not": {
48
+ "anyOf": [
49
+ { "required": ["step"] },
50
+ { "required": ["rounding"] },
51
+ { "required": ["min"] },
52
+ { "required": ["max"] },
53
+ { "required": ["percent"] },
54
+ { "required": ["of"] }
55
+ ]
56
+ }
57
+ }
58
+ },
59
+ {
60
+ "if": {
61
+ "properties": { "mode": { "const": "fixed" } },
62
+ "required": ["mode"]
63
+ },
64
+ "then": {
65
+ "not": {
66
+ "anyOf": [
67
+ { "required": ["step"] },
68
+ { "required": ["rounding"] },
69
+ { "required": ["min"] },
70
+ { "required": ["max"] },
71
+ { "required": ["percent"] },
72
+ { "required": ["of"] }
73
+ ]
74
+ }
75
+ }
76
+ },
77
+ {
78
+ "if": {
79
+ "properties": { "mode": { "const": "toTaste" } },
80
+ "required": ["mode"]
81
+ },
82
+ "then": {
83
+ "not": {
84
+ "anyOf": [
85
+ { "required": ["step"] },
86
+ { "required": ["rounding"] },
87
+ { "required": ["min"] },
88
+ { "required": ["max"] },
89
+ { "required": ["percent"] },
90
+ { "required": ["of"] }
91
+ ]
92
+ }
93
+ }
94
+ },
95
+ {
96
+ "if": {
97
+ "properties": { "mode": { "const": "discrete" } },
98
+ "required": ["mode"]
99
+ },
100
+ "then": {
101
+ "not": {
102
+ "anyOf": [
103
+ { "required": ["percent"] },
104
+ { "required": ["of"] }
105
+ ]
106
+ }
107
+ }
108
+ },
109
+ {
110
+ "if": {
111
+ "properties": { "mode": { "const": "bakersPercent" } },
112
+ "required": ["mode"]
113
+ },
114
+ "then": {
115
+ "required": ["percent", "of"],
116
+ "not": {
117
+ "anyOf": [
118
+ { "required": ["step"] },
119
+ { "required": ["rounding"] },
120
+ { "required": ["min"] },
121
+ { "required": ["max"] }
122
+ ]
123
+ }
124
+ }
125
+ }
126
+ ]
127
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://spec.soustack.org/defs/temperature.schema.json",
4
+ "title": "Temperature",
5
+ "type": "object",
6
+ "oneOf": [
7
+ {
8
+ "type": "object",
9
+ "properties": {
10
+ "target": {
11
+ "type": "string",
12
+ "enum": ["oven", "stovetop", "pan", "oil", "water", "grill", "broiler", "internal", "ambient", "surface"]
13
+ },
14
+ "level": {
15
+ "type": "string",
16
+ "enum": ["veryLow", "low", "medium", "mediumHigh", "high", "veryHigh"]
17
+ },
18
+ "metadata": { "type": "object", "additionalProperties": true }
19
+ },
20
+ "required": ["target", "level"],
21
+ "additionalProperties": false,
22
+ "patternProperties": {
23
+ "^x-": { "$ref": "./common.schema.json#/properties/extensionLaneValue" }
24
+ }
25
+ },
26
+ {
27
+ "type": "object",
28
+ "properties": {
29
+ "target": {
30
+ "type": "string",
31
+ "enum": ["oven", "stovetop", "pan", "oil", "water", "grill", "broiler", "internal", "ambient", "surface"]
32
+ },
33
+ "unit": { "type": "string", "enum": ["celsius", "fahrenheit"] },
34
+ "value": { "type": "number" },
35
+ "approximate": { "type": "boolean" },
36
+ "metadata": { "type": "object", "additionalProperties": true }
37
+ },
38
+ "required": ["target", "unit", "value"],
39
+ "additionalProperties": false,
40
+ "patternProperties": {
41
+ "^x-": { "$ref": "./common.schema.json#/properties/extensionLaneValue" }
42
+ }
43
+ },
44
+ {
45
+ "type": "object",
46
+ "properties": {
47
+ "target": {
48
+ "type": "string",
49
+ "enum": ["oven", "stovetop", "pan", "oil", "water", "grill", "broiler", "internal", "ambient", "surface"]
50
+ },
51
+ "unit": { "type": "string", "enum": ["celsius", "fahrenheit"] },
52
+ "minValue": { "type": "number" },
53
+ "maxValue": { "type": "number" },
54
+ "metadata": { "type": "object", "additionalProperties": true }
55
+ },
56
+ "required": ["target", "unit", "minValue", "maxValue"],
57
+ "additionalProperties": false,
58
+ "patternProperties": {
59
+ "^x-": { "$ref": "./common.schema.json#/properties/extensionLaneValue" }
60
+ }
61
+ }
62
+ ]
63
+ }
@@ -0,0 +1,4 @@
1
+ export declare const SOUSTACK_SPEC_VERSION = "0.0.2";
2
+ export declare const ROOT_SCHEMA_PATH = "soustack.schema.json";
3
+ export declare const STACKS_REGISTRY_PATH = "stacks/registry.json";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAC7C,eAAO,MAAM,gBAAgB,yBAAyB,CAAC;AACvD,eAAO,MAAM,oBAAoB,yBAAyB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,4 @@
1
+ export const SOUSTACK_SPEC_VERSION = "0.0.2";
2
+ export const ROOT_SCHEMA_PATH = "soustack.schema.json";
3
+ export const STACKS_REGISTRY_PATH = "stacks/registry.json";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG,OAAO,CAAC;AAC7C,MAAM,CAAC,MAAM,gBAAgB,GAAG,sBAAsB,CAAC;AACvD,MAAM,CAAC,MAAM,oBAAoB,GAAG,sBAAsB,CAAC"}
@@ -0,0 +1,24 @@
1
+ {
2
+ "$schema": "https://spec.soustack.org/soustack.schema.json",
3
+ "stacks": {
4
+ "structured": 1,
5
+ "illustrated": 1
6
+ },
7
+ "name": "Picture Smoothie",
8
+ "ingredients": [
9
+ "fruit",
10
+ "yogurt"
11
+ ],
12
+ "instructions": [
13
+ {
14
+ "id": "s1",
15
+ "text": "blend",
16
+ "images": [
17
+ "http://example.com/blend.jpg"
18
+ ]
19
+ }
20
+ ],
21
+ "images": [
22
+ "http://example.com/cover2.jpg"
23
+ ]
24
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "$schema": "https://spec.soustack.org/soustack.schema.json",
3
+ "stacks": {
4
+ "equipment": 1,
5
+ "structured": 1
6
+ },
7
+ "name": "Recipe with Invalid Equipment Reference",
8
+ "yield": {
9
+ "amount": 1,
10
+ "unit": "serving"
11
+ },
12
+ "time": {
13
+ "total": {
14
+ "minutes": 30
15
+ }
16
+ },
17
+ "equipment": [
18
+ {
19
+ "id": "skillet",
20
+ "name": "8-inch skillet"
21
+ }
22
+ ],
23
+ "ingredients": [
24
+ {
25
+ "id": "meat",
26
+ "name": "Meat"
27
+ }
28
+ ],
29
+ "instructions": [
30
+ {
31
+ "id": "sear",
32
+ "text": "Sear the meat",
33
+ "usesEquipment": [
34
+ "nonexistent"
35
+ ]
36
+ }
37
+ ]
38
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "$schema": "https://spec.soustack.org/soustack.schema.json",
3
+ "stacks": {
4
+ "prep": 1,
5
+ "equipment": 1
6
+ },
7
+ "name": "Recipe with Unknown Equipment Reference",
8
+ "yield": {
9
+ "amount": 1,
10
+ "unit": "serving"
11
+ },
12
+ "time": {
13
+ "total": {
14
+ "minutes": 30
15
+ }
16
+ },
17
+ "equipment": [
18
+ {
19
+ "id": "knife",
20
+ "name": "Chef's knife"
21
+ }
22
+ ],
23
+ "ingredients": [
24
+ "onion"
25
+ ],
26
+ "instructions": [
27
+ "Cook"
28
+ ],
29
+ "miseEnPlace": [
30
+ {
31
+ "text": "Use the missing equipment",
32
+ "usesEquipment": [
33
+ "missing-equipment"
34
+ ]
35
+ }
36
+ ]
37
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "$schema": "https://spec.soustack.org/soustack.schema.json",
3
+ "stacks": {
4
+ "prep": 1,
5
+ "referenced": 1,
6
+ "structured": 1
7
+ },
8
+ "name": "Recipe with Unknown Input Reference",
9
+ "yield": {
10
+ "amount": 1,
11
+ "unit": "serving"
12
+ },
13
+ "time": {
14
+ "total": {
15
+ "minutes": 30
16
+ }
17
+ },
18
+ "ingredients": [
19
+ {
20
+ "id": "onion",
21
+ "name": "Onion"
22
+ }
23
+ ],
24
+ "instructions": [
25
+ {
26
+ "id": "cook",
27
+ "text": "Cook",
28
+ "inputs": [
29
+ "onion"
30
+ ]
31
+ }
32
+ ],
33
+ "miseEnPlace": [
34
+ {
35
+ "text": "Prepare the missing ingredient",
36
+ "inputs": [
37
+ "missing-ingredient"
38
+ ]
39
+ }
40
+ ]
41
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "$schema": "https://spec.soustack.org/soustack.schema.json",
3
+ "stacks": {
4
+ "storage": 1
5
+ },
6
+ "name": "Recipe with Invalid Reheat Instruction",
7
+ "ingredients": [
8
+ "food"
9
+ ],
10
+ "instructions": [
11
+ "Cook the food"
12
+ ],
13
+ "storage": {
14
+ "refrigerated": {
15
+ "duration": {
16
+ "iso8601": "P3D"
17
+ }
18
+ },
19
+ "leftovers": {
20
+ "reheat": [
21
+ {
22
+ "duration": {
23
+ "minMinutes": 2,
24
+ "maxMinutes": 3
25
+ },
26
+ "notes": "Missing required method field"
27
+ }
28
+ ]
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "$schema": "https://spec.soustack.org/soustack.schema.json",
3
+ "stacks": {
4
+ "storage": 1
5
+ },
6
+ "name": "Recipe with Wrong Reheat Type",
7
+ "ingredients": [
8
+ "food"
9
+ ],
10
+ "instructions": [
11
+ "Cook the food"
12
+ ],
13
+ "storage": {
14
+ "refrigerated": {
15
+ "duration": {
16
+ "iso8601": "P3D"
17
+ }
18
+ },
19
+ "leftovers": {
20
+ "reheat": "Microwave 2\u20133 minutes"
21
+ }
22
+ }
23
+ }