Skip to content

Commit 31fbb31

Browse files
committed
Fix enum of use_syslog property
1 parent 346873f commit 31fbb31

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

netjsonconfig/backends/openwrt/schema.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -634,13 +634,16 @@
634634
"type": "integer",
635635
"title": "use_syslog",
636636
"description": "level of events logged to syslog",
637-
"enum": [
638-
"disable",
639-
"info, notice, warning, errors",
640-
"notice, warning, errors",
641-
"warning, errors",
642-
"errors"
643-
],
637+
"enum": [0, 1, 2, 3, 4],
638+
"options": {
639+
"enum_titles": [
640+
"0 - disable",
641+
"1 - info, notice, warning, errors",
642+
"2 - notice, warning, errors",
643+
"3 - warning, errors",
644+
"4 - errors"
645+
]
646+
},
644647
"default": 0,
645648
"propertyOrder": 15,
646649
},

0 commit comments

Comments
 (0)