{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Slim Eten Recipe (.ser) v1.0","description":"One JSON recipe per .ser file. A language variant shares the recipe ID but is imported separately. Image, visibility and rights declarations are handled by the backend.","type":"object","additionalProperties":false,"required":["schemaVersion","id","languageCode","localeIdentifier","title","servings","ingredients","components","steps"],"properties":{"schemaVersion":{"const":"1.0"},"id":{"type":"string","minLength":3,"maxLength":160},"languageCode":{"type":"string","minLength":2,"maxLength":16},"localeIdentifier":{"type":"string","minLength":2,"maxLength":32},"countryCode":{"type":["string","null"]},"title":{"type":"string","minLength":1},"summary":{"type":["string","null"]},"cuisineIDs":{"type":"array","items":{"type":"string"}},"mealTypeIDs":{"type":"array","items":{"type":"string"}},"servings":{"type":"number","exclusiveMinimum":0},"difficulty":{"type":["integer","null"]},"totalMinutes":{"type":["integer","null"]},"activeMinutes":{"type":["integer","null"]},"makeAheadMinutes":{"type":["integer","null"]},"dietaryTags":{"type":"array","items":{"type":"string"}},"allergenIDs":{"type":"array","items":{"type":"string"}},"ingredients":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/ingredient"}},"components":{"type":"array","items":{"$ref":"#/$defs/component"}},"steps":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/step"}},"nutrition":{"anyOf":[{"$ref":"#/$defs/nutrition"},{"type":"null"}]},"source":{"anyOf":[{"$ref":"#/$defs/source"},{"type":"null"}]}},"$defs":{"quantity":{"type":"object","required":["value","unitID"],"properties":{"value":{"type":"number","minimum":0},"unitID":{"type":"string"}}},"ingredient":{"type":"object","required":["id","ingredientID","displayName","quantity","optional","componentIDs"],"properties":{"id":{"type":"string"},"ingredientID":{"type":"string"},"displayName":{"type":"string"},"quantity":{"$ref":"#/$defs/quantity"},"preparation":{"type":["string","null"]},"optional":{"type":"boolean"},"componentIDs":{"type":"array","items":{"type":"string"}},"substitutionGroupID":{"type":["string","null"]}}},"component":{"type":"object","required":["id","name","makeAhead"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"makeAhead":{"type":"boolean"},"storageInstruction":{"type":["string","null"]}}},"timer":{"type":"object","required":["id","label","durationSeconds","canRunInParallel"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"durationSeconds":{"type":"integer","minimum":1},"canRunInParallel":{"type":"boolean"}}},"dependency":{"type":"object","required":["id","kind","prompt","blocking"],"properties":{"id":{"type":"string"},"kind":{"enum":["required_prior_action","parallel_action","prepare_next"]},"sourceStepID":{"type":["string","null"]},"prompt":{"type":"string"},"blocking":{"type":"boolean"}}},"temperature":{"type":"object","required":["value","unit"],"properties":{"value":{"type":"number"},"unit":{"enum":["celsius","fahrenheit"]}}},"step":{"type":"object","required":["id","order","instruction","ingredientIDs","componentIDs","timers","dependencies","equipmentIDs","canPrepareAhead"],"properties":{"id":{"type":"string"},"order":{"type":"integer","minimum":1},"instruction":{"type":"string","minLength":1},"ingredientIDs":{"type":"array","items":{"type":"string"}},"componentIDs":{"type":"array","items":{"type":"string"}},"timers":{"type":"array","items":{"$ref":"#/$defs/timer"}},"dependencies":{"type":"array","items":{"$ref":"#/$defs/dependency"}},"temperature":{"anyOf":[{"$ref":"#/$defs/temperature"},{"type":"null"}]},"equipmentIDs":{"type":"array","items":{"type":"string"}},"canPrepareAhead":{"type":"boolean"},"makeAheadInstruction":{"type":["string","null"]}}},"nutrition":{"type":"object","required":["per","micronutrients"],"properties":{"per":{"enum":["recipe","serving"]},"energyKcal":{"type":["number","null"]},"proteinGrams":{"type":["number","null"]},"carbohydrateGrams":{"type":["number","null"]},"fatGrams":{"type":["number","null"]},"fiberGrams":{"type":["number","null"]},"micronutrients":{"type":"object","additionalProperties":{"type":"number"}}}},"source":{"type":"object","required":["kind"],"properties":{"kind":{"enum":["ai_generated","user_created","imported","curated"]},"sourceReference":{"type":["string","null"]}}}}}