{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://francespopsicle.com/data/recipe.schema.json",
  "title": "Frances Popsicle Recipe",
  "type": "object",
  "required": [
    "schemaVersion",
    "slug",
    "title",
    "status",
    "url",
    "dataUrl",
    "ingredients",
    "instructions",
    "vegan"
  ],
  "properties": {
    "schemaVersion": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "category": {
      "type": "string"
    },
    "icon": {
      "type": "string"
    },
    "eyebrow": {
      "type": "string"
    },
    "status": {
      "enum": [
        "complete",
        "documented-batch",
        "in-progress"
      ]
    },
    "statusLabel": {
      "type": "string"
    },
    "sourceType": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "dataUrl": {
      "type": "string",
      "format": "uri"
    },
    "recipeYield": {
      "type": "string"
    },
    "meta": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "ingredients": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "instructions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "francesNote": {
      "type": "string"
    },
    "editorialNote": {
      "type": "string"
    },
    "mealPlanWeeks": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    },
    "vegan": {
      "type": "boolean"
    },
    "sourceDocument": {
      "type": "string"
    },
    "ingredientGroups": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "servingSuggestions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "amcInspired": {
      "type": "boolean"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "image": {
      "type": "object",
      "properties": {
        "src": {
          "type": "string"
        },
        "alt": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "social": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "image": {
          "type": "string"
        },
        "imageAlt": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "ingredientDetails": {
      "type": "array",
      "description": "Machine-friendly ingredient normalization. The original ingredients array remains canonical display text.",
      "items": {
        "type": "object",
        "required": [
          "text",
          "name",
          "quantity",
          "unit",
          "category",
          "optional"
        ],
        "properties": {
          "text": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "quantity": {
            "type": "string"
          },
          "unit": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "optional": {
            "type": "boolean"
          },
          "group": {
            "type": "string"
          },
          "approximate": {
            "type": "boolean"
          },
          "normalizationConfidence": {
            "enum": [
              "high",
              "medium",
              "low"
            ]
          }
        },
        "additionalProperties": false
      }
    }
  }
}
