{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/publiq/json-schema/publiq-event-settings-schema.json",
  "title": "EventSettings",
  "description": "Event setting within UiTPAS",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/publiq-events-api-openapi.yml#/components/schemas/EventSettings",
  "x-stoplight": {
    "id": "vn36pgcxzw6l7"
  },
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "ID of the event"
    },
    "passholderTicketLimit": {
      "$ref": "#/$defs/PeriodLimit"
    },
    "checkinLimit": {
      "$ref": "#/$defs/PeriodLimit"
    },
    "checkinPoints": {
      "type": "integer",
      "x-stoplight": {
        "id": "2w5lssksar2hk"
      },
      "description": "Points earned after a checkin for this event"
    }
  },
  "required": [
    "id",
    "checkinPoints"
  ],
  "$defs": {
    "PeriodLimit": {
      "title": "PeriodLimit",
      "type": "object",
      "description": "Period limit settings",
      "properties": {
        "volume": {
          "type": "integer",
          "description": "Volume of this limit"
        },
        "periodType": {
          "type": "string",
          "enum": [
            "ABSOLUTE",
            "DAY",
            "WEEK",
            "MONTH",
            "QUARTER",
            "YEAR"
          ],
          "description": "Period type of the limit"
        }
      },
      "required": [
        "volume",
        "periodType"
      ]
    }
  }
}