FoodRecipeResult food.recipe-result@1
Generated at from
openvibe-contracts v0.150.0 and
openvibe-sdk v0.44.0.
- Version
- 1.0.0
- Owner
- food
- Visibility
- public
- Status
- active
- Compatibility
- backward
- Schema
https://openvibe.network/contracts/food/recipe-result.v1.json
food.recipe-result@1: what food.recipes.suggest answers: the new suggestion (POST /api/v1/recipes/suggest, 201) or the caller's recent ones (GET /api/v1/recipes).
Fields
This schema has no named fields.
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: list
{
"recipes": [
{
"id": "rcp_01JQ8Z0000000000000000000C",
"created_at": "2026-10-12T05:25:14.000Z",
"ask": "something quick",
"people": 2,
"ai_run_id": "run_01JQ8Z0000000000000000000D",
"recipes": [
{
"title": "Egg fried rice",
"serves": 2,
"minutes": 15,
"ingredients": [
{
"name": "Eggs",
"amount": "3",
"from_pantry": true,
"citations": []
},
{
"name": "White rice",
"amount": "2 cups cooked",
"from_pantry": false,
"citations": [
1
]
}
],
"steps": [
"Scramble the eggs and set them aside.",
"Fry the rice, stir the eggs back in and serve."
],
"notes": null,
"to_buy": [
{
"slug": "rice-long-grain",
"name": "Long Grain White Rice (2 lb)",
"price": 1.25
}
],
"to_buy_cost": 1.25,
"to_buy_cost_partial": false,
"cost_note": "Cost is an estimate from typical prices, not a live price."
}
]
}
]
}Rejected: bare-array
[
{
"id": "rcp_01JQ8Z0000000000000000000C",
"created_at": "2026-10-12T05:25:14.000Z",
"ask": "something quick",
"people": 2,
"ai_run_id": "run_01JQ8Z0000000000000000000D",
"recipes": [
{
"title": "Egg fried rice",
"serves": 2,
"minutes": 15,
"ingredients": [
{
"name": "Eggs",
"amount": "3",
"from_pantry": true,
"citations": []
},
{
"name": "White rice",
"amount": "2 cups cooked",
"from_pantry": false,
"citations": [
1
]
}
],
"steps": [
"Scramble the eggs and set them aside.",
"Fry the rice, stir the eggs back in and serve."
],
"notes": null,
"to_buy": [
{
"slug": "rice-long-grain",
"name": "Long Grain White Rice (2 lb)",
"price": 1.25
}
],
"to_buy_cost": 1.25,
"to_buy_cost_partial": false,
"cost_note": "Cost is an estimate from typical prices, not a live price."
}
]
}
]Validate
const contracts = require('openvibe-contracts');
contracts.validate('food.recipe-result@1', value); // { valid, errors: [{ path, message }] }