# Saffron recipe file examples

Canonical: https://docs.cooksaffron.com/examples/

Both examples validate against https://docs.cooksaffron.com/saffron-v1.schema.json

## Minimal recipe
Download: https://docs.cooksaffron.com/overnight-oats.saffron

```json
{
  "format": "saffron",
  "version": 1,
  "recipes": [
    {
      "title": "Overnight oats",
      "servings": 1,
      "ingredients": [
        {
          "name": "Rolled oats",
          "quantity": "0.5",
          "unit": "cup"
        },
        {
          "name": "Milk",
          "quantity": "0.5",
          "unit": "cup"
        }
      ],
      "steps": [
        {
          "text": "Combine the oats and milk in a covered container. Refrigerate overnight."
        }
      ]
    }
  ]
}
```

## Counted yield, notes and timer
Download: https://docs.cooksaffron.com/vanilla-cookies.saffron

```json
{
  "format": "saffron",
  "version": 1,
  "recipes": [
    {
      "title": "Vanilla cookies",
      "description": "Soft vanilla cookies with crisp edges.",
      "servings": 24,
      "yieldUnit": "cookies",
      "prepMinutes": 15,
      "cookMinutes": 12,
      "ingredients": [
        {
          "name": "All-purpose flour",
          "quantity": "2",
          "unit": "cup"
        },
        {
          "name": "Butter",
          "quantity": "0.5",
          "unit": "cup",
          "preparation": "Softened"
        },
        {
          "name": "Sugar",
          "quantity": "0.75",
          "unit": "cup"
        },
        {
          "name": "Egg",
          "quantity": "1",
          "unit": "piece"
        },
        {
          "name": "Vanilla extract",
          "quantity": "1",
          "unit": "teaspoon"
        }
      ],
      "steps": [
        {
          "text": "Beat the butter and sugar together. Add the egg and vanilla."
        },
        {
          "text": "Stir in the flour and portion into 24 cookies."
        },
        {
          "text": "Bake at 350°F for 12 minutes, until the edges are lightly golden.",
          "timerSeconds": 720
        }
      ],
      "notes": "Let the cookies cool on the tray before moving them."
    }
  ]
}
```
