{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/talval-com/json-schema/talval-com-daily-schema.json",
  "title": "Daily",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/talval-com-openapi.yml#/components/schemas/Daily",
  "type": "object",
  "properties": {
    "week_start": {
      "type": "string",
      "format": "date",
      "description": "Monday of the week this snapshot covers."
    },
    "picks": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Pick"
      }
    },
    "streak": {
      "type": [
        "object",
        "null"
      ],
      "description": "The signed-in reader's open streak. Always null for unauthenticated callers."
    },
    "note": {
      "type": "string",
      "description": "A short written note on the week's picks."
    }
  },
  "required": [
    "week_start",
    "picks"
  ],
  "$defs": {
    "Pick": {
      "type": "object",
      "properties": {
        "rank": {
          "type": "integer"
        },
        "ticker": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "sector": {
          "type": "string"
        },
        "rating": {
          "type": "string"
        },
        "conviction": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10
        },
        "reason": {
          "type": "string"
        }
      },
      "required": [
        "rank",
        "ticker",
        "name"
      ]
    }
  }
}