{
    "$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": {
            "type": "string"
        },
        "postedSlides": {
            "type": "boolean"
        },
        "rating": {
            "oneOf": [
                {
                    "maximum": 2
                },
                {
                    "maximum": 5
                }
            ],
            "type": "number"
        }
    },
    "required": [
        "email",
        "firstName",
        "lastName",
        "postedSlides",
        "rating"
    ],
    "type": "object"
}