fix(rules): make the 'name' field of POST /rules mandatory

This commit is contained in:
Shawn 2021-12-22 10:17:33 +08:00
parent 5f050b149b
commit 9b4b3d2e8c
1 changed files with 1 additions and 0 deletions

View File

@ -182,6 +182,7 @@ rule_name() ->
{"name", sc(binary(),
#{ desc => "The name of the rule"
, default => ""
, nullable => false
, example => "foo"
})}.