diff --git a/src/api2/node/syslog.rs b/src/api2/node/syslog.rs index 1a377c54..3f18a1da 100644 --- a/src/api2/node/syslog.rs +++ b/src/api2/node/syslog.rs @@ -119,18 +119,21 @@ fn dump_journal( }, }, returns: { - type: Object, + type: Array, description: "Returns a list of syslog entries.", - properties: { - n: { - type: Integer, - description: "Line number.", + items: { + description: "Syslog line with line number.", + properties: { + n: { + type: Integer, + description: "Line number.", + }, + t: { + type: String, + description: "Line text.", + } }, - t: { - type: String, - description: "Line text.", - } - }, + } }, access: { permission: &Permission::Privilege(&["system", "log"], PRIV_SYS_AUDIT, false),