Link Search Menu Expand Document

Subject log schemas

Table of contents

  1. Food consumption log
  2. Water consumption log
  3. Weighing log

Food consumption log

{
    "type": "object",
    "title": "Food Consumption log",
    "properties": {
        "foodAmount": {
            "title": "Food amount (grams)",
            "type": "number",
            "minimum": 0
        }
    },
    "required": ["foodAmount"]
}

Food amount is a required field.

Example of JSON according to this schema

{
    "foodAmount": 32.4
}

Water consumption log

{
    "type": "object",
    "title": "Water consumption log",
    "properties": {
        "waterAmount": {
            "title": "Water Amount (mL)",
            "type": "number",
            "minimum": 0
        }
    },
    "required": ["waterAmount"]
}

Water amount is a required field.

Example of JSON according to this schema

{
    "waterAmount": 53.9
}

Weighing log

{
    "type": "object",
    "title": "Weighing log",
    "properties": {
        "weight": {
            "title": "Weight (grams)",
            "type": "number",
            "minimum": 0
        }
    },
    "required": ["weight"]
}

Weight is a required field.

Example of JSON according to this schema

{
    "weight": 2.5
}