{ "type": "object", "properties": { "balance": { "type": "number", "description": "Signed decimal number" }, "outstanding_credits": { "properties": { "total": { "type": "number" }, "lines": { "type": "array", "items": { "$ref": "account_line.json" } } } }, "outstanding_debits": { "type": "object", "properties": { "total": { "type": "number" }, "lines": { "type": "array", "items": { "$ref": "account_line.json" } } } } }, "additionalProperties": false, "required": [ "balance" ] }