{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/gotowebinar/main/json-schema/gotowebinar-registrant-schema.json",
  "title": "GoToWebinar Registrant",
  "type": "object",
  "required": ["registrantKey", "firstName", "lastName", "email"],
  "properties": {
    "registrantKey": { "type": "string" },
    "firstName": { "type": "string" },
    "lastName": { "type": "string" },
    "email": { "type": "string", "format": "email" },
    "phone": { "type": "string" },
    "organization": { "type": "string" },
    "jobTitle": { "type": "string" },
    "industry": { "type": "string" },
    "comments": { "type": "string" },
    "registrationDate": { "type": "string", "format": "date-time" },
    "status": { "type": "string", "enum": ["APPROVED", "DENIED", "WAITING"] },
    "joinUrl": { "type": "string", "format": "uri" },
    "responses": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "question": { "type": "string" },
          "answer": { "type": "string" }
        }
      }
    }
  }
}
