{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "SortiriBetaApplication",
  "type": "object",
  "required": ["name", "answers"],
  "additionalProperties": false,
  "properties": {
    "name": { "type": "string", "minLength": 2 },
    "email": { "type": "string", "format": "email" },
    "answers": {
      "type": "object",
      "required": [
        "whyJoin",
        "goal",
        "experienceLevel",
        "hasIosDevice",
        "weeklyAvailability"
      ],
      "additionalProperties": false,
      "properties": {
        "whyJoin": { "type": "string", "minLength": 10 },
        "goal": {
          "type": "string",
          "enum": ["lose_fat", "build_muscle", "recomp", "maintain"]
        },
        "experienceLevel": {
          "type": "string",
          "enum": ["beginner", "intermediate", "advanced"]
        },
        "hasIosDevice": { "type": "boolean" },
        "weeklyAvailability": {
          "type": "string",
          "enum": ["1_2", "3_4", "5_plus"]
        },
        "xHandle": { "type": "string" }
      }
    },
    "agentMeta": {
      "type": "object",
      "properties": {
        "agentName": { "type": "string" },
        "submittedBy": { "type": "string" }
      },
      "additionalProperties": false
    },
    "utmSource": { "type": "string" },
    "utmCampaign": { "type": "string" },
    "submittedByHuman": { "type": "boolean" }
  }
}
