{
    "$schema": "http://json-schema.org/draft-06/schema#",
    "title": "Space Monkey",
    "description": "Like a monkey, ready to be shot into space",
    "type": "object",
    "properties": {
        "id": {
            "description": "Unique identifier",
            "type": "integer",
            "minimum": 1
        },
        "firstName": {
            "description": "First name",
            "type": "string",
            "maxLength": 10
        },
        "lastName": {
            "description": "Last name",
            "type": "string",
            "maxLength": 10
        },
        "isAlive": {
            "description": "Is alive?",
            "type": "boolean"
        },
        "age": {
            "type": "number",
            "minimum": 0
        },
        "projects": {
            "description": "Projects involved in",
            "type": "array",
            "items": {
                "type": "string"
            },
            "minItems": 1,
            "maxItems": 3,
            "_uniqueItems": true
        },
        "attributes": {
            "type": "object",
            "properties": {
                "isReal": {
                    "type": "boolean"
                },
                "episodes": {
                    "type": "integer",
                    "minimum": 0
                },
                "aliases": {
                    "type": "array",
                    "items": {
                        "type": "string",
                        "maxLength": 15
                    },
                    "_uniqueItems": true
                }
            },
            "required": [
                "isReal"
            ]
        }
    },
    "required": [
        "id",
        "firstName",
        "lastName",
        "isAlive",
        "age"
    ]
}