`rename_all = "camelCase"` fails if fields are already in camelCase
NyxCode opened this issue · 1 comments
NyxCode commented
#[derive(Serialize, Deserialize, TS, Clone)]
#[serde(rename_all = "camelCase")]
pub struct CamelCase {
alreadyCamelCase: u32
}
serde_json would serialize this into
{"alreadyCamelCase":0}
but we generate
interface CamelCase { alreadycamelcase: number, }
escritorio-gustavo commented