using camelCase

This commit is contained in:
kevin zhao
2025-11-11 20:53:53 -05:00
parent 1743981ee5
commit 66dca34c1c
3 changed files with 5 additions and 3 deletions

View File

@@ -22,11 +22,11 @@ prefix_rule(
- Match:
```json
{
"Match": {
"match": {
"decision": "allow|prompt|forbidden",
"matched_rules": [
{
"PrefixRuleMatch": {
"prefixRuleMatch": {
"matched_prefix": ["<token>", "..."],
"decision": "allow|prompt|forbidden"
}
@@ -38,7 +38,7 @@ prefix_rule(
- No match:
```json
"NoMatch"
"noMatch"
```
- `matched_rules` lists every rule whose prefix matched the command; `matched_prefix` is the exact prefix that matched.

View File

@@ -11,6 +11,7 @@ pub struct Policy {
}
#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub enum Evaluation {
NoMatch,
Match {

View File

@@ -96,6 +96,7 @@ pub struct PrefixRule {
}
#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub enum RuleMatch {
PrefixRuleMatch {
matched_prefix: Vec<String>,