{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "additionalProperties": false,
    "dependencies": {
        "favoriteTopic": [
            "tags"
        ]
    },
    "properties": {
        "email": {
            "pattern": "^[\\w|-|.]+@[\\w]+\\.[A-Za-z]{2,4}$",
            "type": "string"
        },
        "favoriteTopic": {
            "type": "string"
        },
        "firstName": {
            "type": "string"
        },
        "lastName": {
            "type": "string"
        },
        "tags": {
            "items": {
                "type": "string"
            },
            "type": "array"
        }
    },
    "required": [
        "email",
        "firstName",
        "lastName"
    ],
    "type": "object"
}