add isreverse, set to next version

This commit is contained in:
John
2022-04-10 09:19:03 +02:00
parent cc878b621f
commit 5777af8b03
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -2,7 +2,7 @@ openapi: 3.1.0
info:
title: ebusd-http
description: The API that ebusd provides on HTTP port.
version: "21.3"
version: "22.3"
servers:
- url: http://127.0.0.1:8080/
paths:
@@ -530,6 +530,9 @@ components:
isignored:
type: boolean
description: whether the result is ignored.
isreverse:
type: boolean
description: whether the symbols are in reverse order (most significant byte first).
length:
type: number
minimum: -1
+1
View File
@@ -50,6 +50,7 @@ bool DataType::dump(OutputFormat outputFormat, size_t length, bool appendDivisor
if (outputFormat & OF_ALL_ATTRS) {
*output << ", \"isadjustable\": " << (isAdjustableLength() ? "true" : "false");
*output << ", \"isignored\": " << (isIgnored() ? "true" : "false");
*output << ", \"isreverse\": " << (hasFlag(REV) ? "true" : "false");
}
*output << ", \"length\": ";
if (isAdjustableLength() && length == REMAIN_LEN) {