soustack 0.2.3 → 0.3.0

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/src/schema.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "http://soustack.org/schema/v0.2.1",
4
- "title": "Soustack Recipe Schema v0.2.1",
3
+ "$id": "http://soustack.org/schema/v0.3.0",
4
+ "title": "Soustack Recipe Schema v0.3.0",
5
5
  "description": "A portable, scalable, interoperable recipe format.",
6
6
  "type": "object",
7
7
  "required": ["name", "ingredients", "instructions"],
@@ -149,7 +149,10 @@
149
149
  "required": ["amount"],
150
150
  "properties": {
151
151
  "amount": { "type": "number" },
152
- "unit": { "type": ["string", "null"] }
152
+ "unit": {
153
+ "type": ["string", "null"],
154
+ "description": "Display-friendly unit text; implementations may normalize or canonicalize units separately."
155
+ }
153
156
  }
154
157
  },
155
158
  "scaling": {
@@ -184,7 +187,16 @@
184
187
  "aisle": { "type": "string" },
185
188
  "prep": { "type": "string" },
186
189
  "prepAction": { "type": "string" },
190
+ "prepActions": {
191
+ "type": "array",
192
+ "items": { "type": "string" },
193
+ "description": "Structured prep verbs (e.g., peel, dice) for mise en place workflows."
194
+ },
187
195
  "prepTime": { "type": "number" },
196
+ "form": {
197
+ "type": "string",
198
+ "description": "State of the ingredient as used (packed, sifted, melted, room_temperature, etc.)."
199
+ },
188
200
  "destination": { "type": "string" },
189
201
  "scaling": { "$ref": "#/definitions/scaling" },
190
202
  "critical": { "type": "boolean" },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "http://soustack.org/schema/v0.2.1",
4
- "title": "Soustack Recipe Schema v0.2.1",
3
+ "$id": "http://soustack.org/schema/v0.3.0",
4
+ "title": "Soustack Recipe Schema v0.3.0",
5
5
  "description": "A portable, scalable, interoperable recipe format.",
6
6
  "type": "object",
7
7
  "required": ["name", "ingredients", "instructions"],
@@ -149,7 +149,10 @@
149
149
  "required": ["amount"],
150
150
  "properties": {
151
151
  "amount": { "type": "number" },
152
- "unit": { "type": ["string", "null"] }
152
+ "unit": {
153
+ "type": ["string", "null"],
154
+ "description": "Display-friendly unit text; implementations may normalize or canonicalize units separately."
155
+ }
153
156
  }
154
157
  },
155
158
  "scaling": {
@@ -184,7 +187,16 @@
184
187
  "aisle": { "type": "string" },
185
188
  "prep": { "type": "string" },
186
189
  "prepAction": { "type": "string" },
190
+ "prepActions": {
191
+ "type": "array",
192
+ "items": { "type": "string" },
193
+ "description": "Structured prep verbs (e.g., peel, dice) for mise en place workflows."
194
+ },
187
195
  "prepTime": { "type": "number" },
196
+ "form": {
197
+ "type": "string",
198
+ "description": "State of the ingredient as used (packed, sifted, melted, room_temperature, etc.)."
199
+ },
188
200
  "destination": { "type": "string" },
189
201
  "scaling": { "$ref": "#/definitions/scaling" },
190
202
  "critical": { "type": "boolean" },