{
    "additionalProperties": false,
    "anyOf": [
        {
            "required": [
                "list_id"
            ],
            "title": "Required list_id"
        },
        {
            "required": [
                "list_code"
            ],
            "title": "Required list_code"
        }
    ],
    "description": "Subscribe user",
    "examples": [
        {
            "email": "test@test.com",
            "list_id": 1,
            "user_id": 1,
            "variant_id": 1
        },
        {
            "email": "test@test.com",
            "list_code": "123",
            "user_id": 1,
            "variant_id": null
        }
    ],
    "properties": {
        "email": {
            "_format": "email",
            "type": "string"
        },
        "list_code": {
            "type": "string"
        },
        "list_id": {
            "type": "integer"
        },
        "user_id": {
            "type": "integer"
        },
        "variant_id": {
            "type": "integer"
        }
    },
    "required": [
        "email",
        "user_id"
    ],
    "title": "Subscribe",
    "type": "object"
}