{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/swoogo/json-schema/swoogo-session-fields-schema.json",
  "title": "sessionFields",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/swoogo-openapi.yml#/components/schemas/sessionFields",
  "type": "object",
  "required": [
    "event_id",
    "name"
  ],
  "properties": {
    "id": {
      "type": "integer",
      "description": "Unique identifier for the session."
    },
    "event_id": {
      "type": "integer",
      "description": "ID of the event associated with this session."
    },
    "name": {
      "type": "string",
      "description": "Title or name of the session."
    },
    "admin_short_name": {
      "type": "string",
      "description": "Admin-specific short name for internal usage."
    },
    "badge_name": {
      "type": "string",
      "description": "Display name on attendee badges."
    },
    "description": {
      "type": "string",
      "description": "Detailed description of the session."
    },
    "date": {
      "type": "string",
      "format": "date",
      "description": "The date when the session will take place."
    },
    "start_time": {
      "type": "string",
      "format": "time",
      "description": "Start time of the session."
    },
    "end_time": {
      "type": "string",
      "format": "time",
      "description": "End time of the session."
    },
    "use_event_timezone": {
      "type": "integer",
      "description": "Whether the event's default timezone is applied to the session."
    },
    "timezone": {
      "type": "string",
      "description": "Timezone for the session. For a list of TZ check `TZ Identifier` column in [this page](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)."
    },
    "capacity": {
      "type": "integer",
      "description": "Maximum number of attendees allowed."
    },
    "location_id": {
      "type": "integer",
      "description": "Identifier for the location."
    },
    "track_id": {
      "type": "integer",
      "description": "Identifier for the session's track."
    },
    "webinar_url": {
      "type": "string",
      "format": "uri",
      "description": "URL for the webinar if the session is virtual."
    },
    "sold_out_message": {
      "type": "string",
      "description": "Custom message displayed when the session is sold out."
    },
    "secure_id": {
      "type": "string",
      "description": "Secure identifier for the session."
    },
    "session_status": {
      "type": "string",
      "description": "Current status of the session.",
      "enum": [
        "submitted",
        "approved",
        "rejected",
        "converted",
        "live"
      ]
    },
    "locked_when_saved": {
      "type": "integer",
      "description": "Whether the session is locked after being saved.",
      "enum": [
        0,
        1
      ]
    },
    "selection_control": {
      "type": "string",
      "enum": [
        "optional",
        "included"
      ],
      "description": "Specifies whether the session is optional or included by default, setting the value 'session_included'."
    },
    "selected_by_default": {
      "type": "integer",
      "description": "Indicates if the session is selected by default for attendees.",
      "enum": [
        0,
        1
      ]
    },
    "prevent_session_conflicts": {
      "type": "integer",
      "description": "Whether when selecting this session should prevent conflicts with other sessions.",
      "enum": [
        0,
        1
      ]
    },
    "custom_fields": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Custom fields associated with the session."
    }
  }
}