Skip to content

Commit 5016985

Browse files
committed
fix: json schema validation
1 parent c0da6c0 commit 5016985

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎system/cuos/system-schema.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"mac-address": {
3535
"type": "string",
3636
"description": "MAC address for interface identification",
37-
"pattern": "^(?:[0-9A-Fa-f]{2}([-:])(?:[0-9A-Fa-f]{2}\\1){4}[0-9A-Fa-f]{2}|[0-9A-Fa-f]{12})$"
37+
"pattern": "^(?:[0-9A-Fa-f]{2}[-:](?:[0-9A-Fa-f]{2}[-:]){4}[0-9A-Fa-f]{2}|[0-9A-Fa-f]{12})$"
3838
},
3939
"dhcp": {
4040
"type": "boolean",

‎system/cuos/utils.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jq_replace() {
8888

8989
state() {
9090
local key="$1"
91-
local value="$2"
91+
local value="${2:-}"
9292
local state_file="/data/state.json"
9393
local new_state
9494

0 commit comments

Comments
 (0)