{
    "$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": {
            "anyOf": [
                {
                    "type": "boolean"
                },
                {
                    "enum": [
                        "yes",
                        "Yes",
                        "no",
                        "No"
                    ],
                    "type": "string"
                }
            ]
        },
        "rating": {
            "type": "number"
        }
    },
    "required": [
        "email",
        "firstName",
        "lastName",
        "postedSlides",
        "rating"
    ],
    "type": "object"
}