{
  "$schema": "http://json-schema.org/draft-06/schema#",
  "title": "Program Share Links",
  "description": "Links this user can share to make referrals",
  "type": "object",
  "patternProperties": {
    "^[a-zA-Z0-9-]{1,64}$": {
      "type": "object",
      "title": "Program Share Link",
      "description": "The primary share links available for this program",
      "properties": {
        "cleanShareLink": {
          "type": "string",
          "title": "Clean Link for Given Program",
          "description": "If the program's primary link is a vanity link then this will be the unencoded link, if not it is the UNKNOWN engagement medium and UNKOWN share medium link"
        },
        "MOBILE": {
          "title": "Mobile Share Links",
          "description": "Share links tracked with the MOBILE engagement medium",
          "$ref": "#/definitions/subShareLinks"
        },
        "EMAIL": {
          "title": "Email Share Links",
          "description": "Share links tracked with the EMAIL engagement medium",
          "$ref": "#/definitions/subShareLinks"
        },
        "UNKNOWN": {
          "title": "Share Links",
          "description": "Share links tracked with the UNKNOWN engagement medium",
          "$ref": "#/definitions/subShareLinks"
        }
      },
      "required": [
        "cleanShareLink",
        "MOBILE",
        "EMAIL",
        "UNKNOWN"
      ],
      "additionalProperties": false
    }
  },
  "definitions": {
    "subShareLinks": {
      "type": "object",
      "properties": {
        "DIRECT": {
          "type": "string",
          "title": "Direct Share Link",
          "description": "Share link associated with the DIRECT share medium"
        }
      },
      "required": [
        "DIRECT"
      ],
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}