changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "days": {
+ "items": {
+ "properties": {
+ "caffeine_mg": {
+ "type": "number"
+ },
+ "entry_count": {
+ "type": "integer"
+ },
+ "fluid_ml": {
+ "type": "number"
+ },
+ "local_date": {
+ "description": "A local date, YYYY-MM-DD.",
+ "type": "string"
+ },
+ "totals": {
+ "description": "Calories and macros. Estimates, not lab-measured; not for insulin dosing.",
+ "properties": {
+ "carb_g": {
+ "type": "number"
+ },
+ "fat_g": {
+ "type": "number"
+ },
+ "kcal": {
+ "type": "number"
+ },
+ "protein_g": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "kcal",
+ "protein_g",
+ "carb_g",
+ "fat_g"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "local_date",
+ "entry_count",
+ "totals"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "end": {
+ "description": "A local date, YYYY-MM-DD.",
+ "type": "string"
+ },
+ "entries": {
+ "items": {
+ "description": "One diary entry: a meal with its foods.",
+ "properties": {
+ "at": {
+ "description": "ISO-8601 UTC instant the food was eaten.",
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "items": {
+ "items": {
+ "properties": {
+ "caffeine_mg": {
+ "type": "number"
+ },
+ "fluid_ml": {
+ "type": "number"
+ },
+ "macros": {
+ "description": "Calories and macros. Estimates, not lab-measured; not for insulin dosing.",
+ "properties": {
+ "carb_g": {
+ "type": "number"
+ },
+ "fat_g": {
+ "type": "number"
+ },
+ "kcal": {
+ "type": "number"
+ },
+ "protein_g": {
+ "type": "number"
+ }
+ },
+ "required": [],
+ "type": "object"
+ },
+ "name": {
+ "type": "string"
+ },
+ "quantity": {
+ "type": "string"
+ },
+ "source": {
+ "description": "Where the macros came from (e.g. usda, off, client).",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "local_date": {
+ "description": "A local date, YYYY-MM-DD.",
+ "type": "string"
+ },
+ "meal": {
+ "description": "breakfast, lunch, dinner or snack, when set.",
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "at",
+ "local_date",
+ "items"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "start": {
+ "description": "A local date, YYYY-MM-DD.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "start",
+ "end",
+ "days",
+ "entries"
+ ],
+ "type": "object"
+}