{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "additionalProperties": false,
    "properties": {
        "email": {
            "pattern": "^[\\w|-|.]+@[\\w]+\\.[A-Za-z]{2,4}$",
            "type": "string"
        },
        "firstName": {
            "type": "string"
        },
        "lastName": {
            "allOf": [
                {
                    "type": "string"
                },
                {
                    "maxLength": 20
                }
            ]
        },
        "postedSlides": {
            "type": "boolean"
        },
        "rating": {
            "maximum": 5,
            "type": "number"
        }
    },
    "required": [
        "email",
        "firstName",
        "lastName",
        "postedSlides",
        "rating"
    ],
    "type": "object"
}