Skip to content

Commit

Permalink
Allow floating-point numbers in "max" channel property (#813)
Browse files Browse the repository at this point in the history
  • Loading branch information
sikmir authored Sep 20, 2024
1 parent a95ef50 commit 1904b44
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
wb-mqtt-serial (2.143.1) stable; urgency=medium

* JSON schema: allow floating-point numbers in "max" channel property

-- Nikolay Korotkiy <[email protected]> Thu, 19 Sep 2024 13:10:00 +0400

wb-mqtt-serial (2.143.0) stable; urgency=medium

* Add the current transformers reverse setting to the MAP templates
Expand Down
18 changes: 17 additions & 1 deletion wb-mqtt-serial-confed-common.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
},
"max": {
"title": "Maximum value",
"$ref": "#/definitions/serial_int",
"$ref": "#/definitions/serial_num",
"propertyOrder": 10,
"options": {
"keep_oneof_values": false
Expand Down Expand Up @@ -1018,6 +1018,22 @@
}
]
},
"serial_num": {
"oneOf": [
{
"title": "decimal or hex",
"type": "string",
"pattern": "^(0x[A-Fa-f\\d]+|\\d+)$",
"options": {
"patternmessage": "Should be decimal or hex"
}
},
{
"title": "decimal",
"type": "number"
}
]
},

"no_setup": {
"properties": {
Expand Down

0 comments on commit 1904b44

Please sign in to comment.