{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "definitions": {
        "refObject": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "sub1": {
                    "type": "string",
                    "default": "ta-da"
                }
            }
        }
    },
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "prop1": {
            "type": "integer",
            "default": 57
        },
        "prop2": {
            "$ref": "#/definitions/refObject"
        }
    },
    "required": [
        "prop1"
    ]
}