{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api-evangelist.github.io/benchling/json-schema/Ingredient.json",
  "title": "Ingredient",
  "properties": {
    "amount": {
      "description": "The amount value of this ingredient in its mixture, in string format (to preserve full precision). Pair with `units`. Supports scientific notation (1.23e4). One ingredient on this mixture can have an amount value of `\"QS\"`.\n",
      "example": "12",
      "nullable": true,
      "type": "string"
    },
    "catalogIdentifier": {
      "example": "DION_004",
      "nullable": true,
      "type": "string"
    },
    "componentEntity": {
      "allOf": [
        {
          "$ref": "#/components/schemas/EntityLabels"
        },
        {
          "description": "The entity that uniquely identifies this component."
        }
      ]
    },
    "componentLotContainer": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ContainerLabels"
        }
      ],
      "description": "The container representing the component lot for this ingredient. This is only present if the mixture schema supports component lots in \"inventory\" format.",
      "nullable": true
    },
    "componentLotEntity": {
      "allOf": [
        {
          "$ref": "#/components/schemas/EntityLabels"
        }
      ],
      "description": "The entity representing the component lot for this ingredient. This is only present if the mixture schema supports component lots in \"inventory\" format.",
      "nullable": true
    },
    "componentLotText": {
      "description": "Text representing the component lot for this ingredient. This is only present if the mixture schema supports component lots in \"text\" format.",
      "example": "DION_004-source_001",
      "nullable": true,
      "type": "string"
    },
    "hasParent": {
      "type": "boolean"
    },
    "notes": {
      "nullable": true,
      "type": "string"
    },
    "targetAmount": {
      "description": "The target amount for this ingredient such that this ingredient's proportion in its mixture would preserve the equivalent ingredient's proportion in the parent mixture. Pair with `units`.",
      "example": "123",
      "nullable": true,
      "readOnly": true,
      "type": "string"
    },
    "units": {
      "$ref": "#/components/schemas/IngredientMeasurementUnits"
    }
  },
  "type": "object"
}