{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "definitions": {
        "link": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "href": {
                    "type": "string"
                }
            }
        },
        "error": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "code": {
                    "type": "integer"
                },
                "message": {
                    "type": "string"
                }
            }
        }
    },
    "properties": {
        "link": {
            "$ref": "#/definitions/link"
        },
        "error": {
            "$ref": "#/definitions/error"
        }
    },
    "required": [
        "link",
        "error"
    ]
}