Open thatoneprogrammer111 opened 2 weeks ago
Not only with rename_all
, I also had trouble with single rename
for individual field
Not only with
rename_all
, I also had trouble with singlerename
for individual field
Seems to be fixed for the 1.0.0-rc.6
version, the only slight inconvenience is that the fields in the DB will be camelCase.
I am willing to take this tradeoff however.
Description
#[serde(rename_all = "camelCase")]
on a Model derived withDeriveEntityModel
is not working correctly on theActiveModel
Steps to Reproduce
Expected Behavior
Getting an ActiveModel that looks like
Actual Behavior
A model with fields affected by
rename_all
unset:Reproduces How Often
always
Workarounds
If this is intended, Model::deserialize, then converting to a ActiveModel works:
Reproducible Example
See steps to reproduce
Versions
Windows 10, SeaORM
0.12.15