Use camelCase for policy responses

This commit is contained in:
zhao-oai
2025-11-13 16:07:07 -05:00
committed by kevin zhao
parent 7697a2bb81
commit ce220f0be2
3 changed files with 5 additions and 3 deletions

View File

@@ -46,6 +46,7 @@ pub enum Evaluation {
NoMatch,
Match {
decision: Decision,
#[serde(rename = "matchedRules")]
matched_rules: Vec<RuleMatch>,
},
}

View File

@@ -60,6 +60,7 @@ impl PrefixPattern {
#[serde(rename_all = "camelCase")]
pub enum RuleMatch {
PrefixRuleMatch {
#[serde(rename = "matchedPrefix")]
matched_prefix: Vec<String>,
decision: Decision,
},