{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "client_id": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "event": {
      "type": "string",
      "const": "measure_offer_used"
    },
    "tracking_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "timestamp_ms": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "event_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "schema_version": {
      "type": "number",
      "const": 1
    },
    "user_agent": {
      "type": "string",
      "maxLength": 2048
    },
    "shop_country": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 8
        },
        {
          "type": "null"
        }
      ]
    },
    "channel": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ]
    },
    "store_id": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ]
    },
    "instance_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "product_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "brand_id": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "product_associated": {
      "type": "boolean"
    },
    "ab_data": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "testEvent": {
      "type": "boolean",
      "const": true
    },
    "extra": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "reco_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "measurement": {
      "type": "string",
      "enum": [
        "height",
        "chest",
        "underbust",
        "waist",
        "pelvisGirth",
        "hipsMax",
        "upperArm",
        "wrist",
        "thigh",
        "calf",
        "neck",
        "upperArmLength",
        "forearmLength",
        "upperLegLength",
        "lowerLegLength",
        "inseam",
        "shoulderWidth",
        "backLength",
        "torsoHeight",
        "sleeveLength",
        "footLength",
        "headCircumference"
      ]
    }
  },
  "required": [
    "client_id",
    "event",
    "tracking_id",
    "timestamp_ms",
    "product_id",
    "reco_id",
    "measurement"
  ],
  "additionalProperties": {},
  "x-fmt-schema-version": 1
}
