{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": {
        "code": {
            "$ref": "#/definitions/error-codeType"
        },
        "message": {
            "type": "string"
        }
    },
    "required": [
        "code",
        "message"
    ],
    "definitions": {
        "error-codeType": {
            "type": "string",
            "enum": [
                "not-open-status",
                "subscription-used",
                "investor-not-found",
                "wrong-lisa-manager",
                "cant-change-accountID",
                "cant-change-investor",
                "invalid-status-change",
                "no-acccount-with-manager",
                "investor-already-created",
                "compliance-charge-wrong",
                "compliance-bonus-wrong",
                "compliance-too-many-subscriptions-in-FP",
                "compliance-too-much-LISA-funds-credited",
                "compliance-too-much-ISA-funds-credited",
                "compliance-account-open-outside-age-range",
                "compliance-funds-credit-outside-age-range"
            ]
        }
    }
}