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: info:
title: ebusd-http title: ebusd-http
description: The API that ebusd provides on HTTP port. description: The API that ebusd provides on HTTP port.
version: "21.3" version: "22.3"
servers: servers:
- url: http://127.0.0.1:8080/ - url: http://127.0.0.1:8080/
paths: paths:
@@ -530,6 +530,9 @@ components:
isignored: isignored:
type: boolean type: boolean
description: whether the result is ignored. description: whether the result is ignored.
isreverse:
type: boolean
description: whether the symbols are in reverse order (most significant byte first).
length: length:
type: number type: number
minimum: -1 minimum: -1
+1
View File
@@ -50,6 +50,7 @@ bool DataType::dump(OutputFormat outputFormat, size_t length, bool appendDivisor
if (outputFormat & OF_ALL_ATTRS) { if (outputFormat & OF_ALL_ATTRS) {
*output << ", \"isadjustable\": " << (isAdjustableLength() ? "true" : "false"); *output << ", \"isadjustable\": " << (isAdjustableLength() ? "true" : "false");
*output << ", \"isignored\": " << (isIgnored() ? "true" : "false"); *output << ", \"isignored\": " << (isIgnored() ? "true" : "false");
*output << ", \"isreverse\": " << (hasFlag(REV) ? "true" : "false");
} }
*output << ", \"length\": "; *output << ", \"length\": ";
if (isAdjustableLength() && length == REMAIN_LEN) { if (isAdjustableLength() && length == REMAIN_LEN) {