You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resources/risk.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ The risk resource. Require ENTERPRISE subscription. Check the docs https://www.b
18
18
### Required
19
19
20
20
-`condition` (String) The risk condition. Check the proto message https://github.com/bytebase/bytebase/blob/main/proto/v1/v1/risk_service.proto#L210 for details.
21
-
-`level` (Number) The risk level, should be 300, 200 or 100. Higher number means higher level.
21
+
-`level` (String) The risk level. Check https://github.com/bytebase/bytebase/blob/fd87c6bfe8a0d4883f25eb480a3b05ed3c2e1727/proto/v1/v1/common.proto#L93 for details
22
22
-`source` (String) The risk source. Check https://github.com/bytebase/bytebase/blob/main/proto/v1/v1/risk_service.proto#L138 for details
Description: "The risk source. Check https://github.com/bytebase/bytebase/blob/main/proto/v1/v1/risk_service.proto#L138 for details",
52
52
},
53
53
"level": {
54
-
Type: schema.TypeInt,
54
+
Type: schema.TypeString,
55
55
Required: true,
56
-
ValidateFunc: validation.IntInSlice([]int{
57
-
300, 200, 100,
58
-
}),
59
-
Description: "The risk level, should be 300, 200 or 100. Higher number means higher level.",
56
+
ValidateFunc: validation.StringInSlice([]string{
57
+
v1pb.RiskLevel_HIGH.String(),
58
+
v1pb.RiskLevel_MODERATE.String(),
59
+
v1pb.RiskLevel_LOW.String(),
60
+
}, false),
61
+
Description: "The risk level. Check https://github.com/bytebase/bytebase/blob/fd87c6bfe8a0d4883f25eb480a3b05ed3c2e1727/proto/v1/v1/common.proto#L93 for details",
0 commit comments