changedOutput schema / properties / entry / anyOf
Previous value: -[
- {
- "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": "null"
- }
-]New value: +[
+ {
+ "description": "One diary entry: a meal with its foods.",
+ "properties": {
+ "at": {
+ "description": "ISO-8601 UTC instant the food was eaten.",
+ "type": "string"
+ },
+ "id": {
+ "description": "Identifies the entry for a later edit or deletion.",
+ "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"
+ },
+ "unknown_macros": {
+ "description": "Macros missing from the source data: shown as 0 but unknown, not a real zero.",
+ "items": {
+ "enum": [
+ "protein_g",
+ "carb_g",
+ "fat_g"
+ ],
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "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": "null"
+ }
+]