{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fnlowl-com/json-schema/fnlowl-com-lead-schema.json",
  "title": "Lead",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fnlowl-com-leads-api-openapi.yml#/components/schemas/Lead",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "email": {
      "type": [
        "string",
        "null"
      ]
    },
    "article": {
      "type": "string"
    },
    "widgetId": {
      "type": "string"
    },
    "widgetName": {
      "type": "string"
    },
    "referrer": {
      "type": "string"
    },
    "capturedAt": {
      "type": "integer"
    },
    "unsubscribed": {
      "type": "boolean"
    },
    "quizScore": {
      "type": [
        "integer",
        "null"
      ]
    },
    "quizTierLabel": {
      "type": [
        "string",
        "null"
      ]
    },
    "quality": {
      "type": "string",
      "enum": [
        "good",
        "warn",
        "bad",
        "unchecked"
      ]
    },
    "utmSource": {
      "type": [
        "string",
        "null"
      ]
    },
    "utmMedium": {
      "type": [
        "string",
        "null"
      ]
    },
    "utmCampaign": {
      "type": [
        "string",
        "null"
      ]
    },
    "device": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "desktop",
        "mobile"
      ]
    },
    "answers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "questionText": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "questionText",
          "value"
        ]
      }
    }
  },
  "required": [
    "id",
    "email",
    "article",
    "widgetId",
    "widgetName",
    "referrer",
    "capturedAt",
    "unsubscribed",
    "quizScore",
    "quizTierLabel",
    "quality",
    "utmSource",
    "utmMedium",
    "utmCampaign",
    "device",
    "answers"
  ]
}