add isreverse, set to next version
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user