{
    "$schema": "http://json-schema.org/draft-04/schema",
    "type": "object",
    "properties": {
        "id": {
            "type": "string"
        },
        "title": {
            "type": "string",
            "minLength": 3,
            "maxLength": 50
        },
        "rating": {
            "type": "number",
            "minimum": 1,
            "maximum": 5
        },
        "director": {
            "type": "string"
        },
        "actors": {
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "category": {
            "enum": [
                "thriller",
                "comedy"
            ]
        },
        "createdAt": {
            "type": "string",
            "format": "date-time"
        }
    }
}