{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/symphony-fr/json-schema/symphony-fr-new-recipe-schema.json",
  "title": "NewRecipe",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/symphony-fr-openapi.yml#/components/schemas/NewRecipe",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "description": "Name/title of the recipe",
      "minLength": 1
    },
    "ingredientQuantities": {
      "type": "array",
      "description": "Array of ingredient quantities. Required when creating new recipe. It will be normalized to sum to 1.0 if normalizeQuantity=true.",
      "items": {
        "type": "number",
        "format": "float",
        "minimum": 0
      },
      "minItems": 1
    },
    "parent": {
      "type": "string",
      "description": "ID of existing recipe to base this recipe on. Required when only changing title or updating existing recipe"
    },
    "normalizeQuantity": {
      "type": "boolean",
      "description": "If true, automatically normalizes quantities to sum to 1.0. Only applies when ingredientQuantities is provided",
      "default": false
    }
  }
}