{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/compteam-io/json-schema/compteam-io-nutrition-adjustment-response-schema.json",
  "title": "NutritionAdjustmentResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/compteam-io-athlete-goal-agent-api-openapi.yml#/components/schemas/NutritionAdjustmentResponse",
  "properties": {
    "nutrition_notes": {
      "type": "string",
      "title": "Nutrition Notes"
    },
    "generated_at": {
      "type": "string",
      "title": "Generated At"
    },
    "timezone": {
      "type": "string",
      "title": "Timezone"
    },
    "local_date": {
      "type": "string",
      "title": "Local Date"
    },
    "weight": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Weight"
    },
    "sessions": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Sessions"
    },
    "day_context": {
      "$ref": "#/$defs/NutritionAdjustmentDayContext"
    }
  },
  "type": "object",
  "required": [
    "nutrition_notes",
    "generated_at",
    "timezone",
    "local_date",
    "weight",
    "sessions",
    "day_context"
  ],
  "$defs": {
    "NutritionAdjustmentDayContext": {
      "properties": {
        "local_date": {
          "type": "string",
          "title": "Local Date"
        },
        "weekday": {
          "type": "string",
          "title": "Weekday"
        },
        "timezone": {
          "type": "string",
          "title": "Timezone"
        },
        "guidance_mode": {
          "type": "string",
          "enum": [
            "rest_day",
            "training_day"
          ],
          "title": "Guidance Mode",
          "description": "Guidance inferred from dated training evidence; an explicit situation update may correct actual activity."
        },
        "confirmed_completed_sessions": {
          "type": "integer",
          "title": "Confirmed Completed Sessions"
        }
      },
      "type": "object",
      "required": [
        "local_date",
        "weekday",
        "timezone",
        "guidance_mode",
        "confirmed_completed_sessions"
      ],
      "title": "NutritionAdjustmentDayContext"
    }
  }
}