Skip to content

Commit 106d25f

Browse files
authored
Fix TruncationDirection to deserialize from lowercase and capitalized (#755)
1 parent 4e1df4a commit 106d25f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

router/src/http/types.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ impl<'__s> ToSchema<'__s> for PredictInput {
195195

196196
#[derive(Debug, Clone, Copy, PartialEq, Deserialize, ToSchema, Eq, Default)]
197197
pub(crate) enum TruncationDirection {
198+
#[serde(alias = "left", alias = "Left")]
198199
Left,
200+
#[serde(alias = "right", alias = "Right")]
199201
#[default]
200202
Right,
201203
}

0 commit comments

Comments
 (0)