We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a23d9b1 commit 58d6ae7Copy full SHA for 58d6ae7
1 file changed
src/plugin/traffic_split.rs
@@ -24,6 +24,7 @@ struct WeightedUpstream {
24
25
#[derive(Debug, Serialize, Deserialize, Validate)]
26
struct MatchRule {
27
+ #[serde(default)]
28
pub vars: Vec<Vec<String>>, // 格式如 [["arg_name", "==", "val"], ["header_x", "~=", "reg"]]
29
#[validate(nested)]
30
pub weighted_upstreams: Vec<WeightedUpstream>,
0 commit comments