From f70e5514e43c6b21a671c0f657bb427a4e0c2cf3 Mon Sep 17 00:00:00 2001 From: Dennis Loose Date: Fri, 13 Dec 2024 12:58:20 +0100 Subject: [PATCH] fix: use kebab-case for category deserialization --- src/db/categories.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/db/categories.rs b/src/db/categories.rs index d740386f..cd103846 100644 --- a/src/db/categories.rs +++ b/src/db/categories.rs @@ -14,6 +14,7 @@ use sqlx::{PgConnection, Postgres, QueryBuilder}; strum::FromRepr, )] #[repr(i32)] +#[strum(serialize_all = "kebab-case")] pub enum Category { ArtAndDesign = 0, BookAndReference = 1,