{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/symphony-fr/json-schema/symphony-fr-recipe-schema.json",
  "title": "Recipe",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/symphony-fr-openapi.yml#/components/schemas/Recipe",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "ingredientQuantities": {
      "type": "array",
      "items": {
        "type": "number",
        "format": "float",
        "minimum": 0
      },
      "description": "Quantities of ingredients in the recipe"
    },
    "image": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "URL of the recipe image"
    },
    "averageRating": {
      "type": [
        "number",
        "null"
      ],
      "format": "float"
    },
    "numberOfRatings": {
      "type": "integer"
    },
    "numberOfOrders": {
      "type": "integer"
    },
    "numberOfComments": {
      "type": "integer"
    },
    "nutritionalValuesPer100g": {
      "$ref": "#/$defs/NutritionalValues"
    }
  },
  "required": [
    "id",
    "ingredientQuantities",
    "nutritionalValuesPer100g"
  ],
  "$defs": {
    "NutritionalValues": {
      "type": "object",
      "description": "Nutritional values. Property keys are localized via `lang` query param (`en` or `fr`).\nExample: `?lang=en` returns English keys (\"Proteins\" instead of \"Protéines\").\n",
      "properties": {
        "price": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Price\" (en) or \"Prix\" (fr). Unit: €"
        },
        "energy": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Energy\" (en) or \"Énergie\" (fr). Unit: kcal"
        },
        "ages": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"AGEs\" (en/fr). Unit: kU"
        },
        "water": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Water\" (en) or \"Eau\" (fr). Unit: g"
        },
        "fiber": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Fibers\" (en) or \"Fibres\" (fr). Unit: g"
        },
        "protein": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Proteins\" (en) or \"Protéines\" (fr). Unit: g"
        },
        "lipid": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Lipids\" (en) or \"Matières grasses\" (fr). Unit: g"
        },
        "saturated-fat": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Saturated fat\" (en) or \"Acides gras saturés\" (fr). Unit: g"
        },
        "monounsaturated-fat": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Monounsaturated fat\" (en) or \"Acides gras monoinsaturés\" (fr). Unit: g"
        },
        "polyunsaturated-fat": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Polyunsaturated fat\" (en) or \"Acides gras polyinsaturés\" (fr). Unit: g"
        },
        "CBD": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"CBD\" (en/fr). Unit: g"
        },
        "glutamic-acid": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Glutamic acid\" (en) or \"Acide glutamique\" (fr). Unit: g"
        },
        "ash": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Ash\" (en) or \"Cendres\" (fr). Unit: g"
        },
        "potassium": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Potassium\" (en/fr). Unit: g"
        },
        "magnesium": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Magnesium\" (en/fr). Unit: g"
        },
        "iron": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Iron\" (en) or \"Fer\" (fr). Unit: g"
        },
        "alcohol": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Alcohol\" (en) or \"Alcool\" (fr). Unit: g"
        },
        "sodium": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Sodium\" (en/fr). Unit: g"
        },
        "availableCarb": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Carbs\" (en) or \"Glucides\" (fr). Unit: g"
        },
        "carbohydrate": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Carbs\" (en) or \"Glucides\" (fr). Unit: g"
        },
        "sugar": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Sugar\" (en) or \"Sucre\" (fr). Unit: g"
        },
        "fodmap": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"FODMAP\" (en/fr). Unit: U"
        },
        "sucrose": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Sucrose\" (en/fr). Unit: g"
        },
        "glucose": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Glucose\" (en/fr). Unit: g"
        },
        "fructose": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Fructose\" (en/fr). Unit: g"
        },
        "lactose": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Lactose\" (en/fr). Unit: g"
        },
        "maltose": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Maltose\" (en/fr). Unit: g"
        },
        "galactose": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Galactose\" (en/fr). Unit: g"
        },
        "vitamin-A": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Vitamin A\" (en) or \"Vitamine A\" (fr). Unit: UI"
        },
        "vitamin-C": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Vitamin C\" (en) or \"Vitamine C\" (fr). Unit: g"
        },
        "vitamin-D": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Vitamin D\" (en) or \"Vitamine D\" (fr). Unit: UI"
        },
        "vitamin-B6": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Vitamin B-6\" (en) or \"Vitamine B-6\" (fr). Unit: g"
        },
        "vitamin-B12": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Vitamin B-12\" (en) or \"Vitamine B-12\" (fr). Unit: g"
        },
        "sourness": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Sourness\" (en) or \"Acidité\" (fr). Unit: sourness"
        },
        "veganness": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Veganness\" (en) or \"Veganité\" (fr). Unit: veganness"
        },
        "PUFA_18-2_n-6": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"PUFA 18:2 n-6\" (en/fr). Unit: g"
        },
        "PUFA_18-3_n-6": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"PUFA 18:3 n-6\" (en/fr). Unit: g"
        },
        "PUFA_18-4_n-6": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"PUFA 18:4 n-6\" (en/fr). Unit: g"
        },
        "PUFA_20-4_n-6": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"PUFA 20:4 n-6\" (en/fr). Unit: g"
        },
        "omega-6": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Omega 6\" (en/fr). Unit: g"
        },
        "PUFA_20-5_n-3": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"EPA n-3\" (en/fr). Unit: g"
        },
        "PUFA_22-5_n-3": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"DPA n-3\" (en/fr). Unit: g"
        },
        "PUFA_22-6_n-3": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"DHA n-3\" (en/fr). Unit: g"
        },
        "omega-3": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Omega 3\" (en/fr). Unit: g"
        },
        "cholesterol": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Cholesterol\" (en/fr). Unit: g"
        },
        "glutenness": {
          "type": "number",
          "format": "float",
          "description": "Localized key: \"Glutenness\" (en/fr). Unit: glutenness"
        }
      },
      "additionalProperties": false
    }
  }
}