{
    "$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 share links available for this program",
            "properties": {
                "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": [
                "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
}