You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I understand why the k is got lowercased. I get the expected behavior if I remove this conversion but it's not a solution because I lose feature of automatic comparison of a field of parsed structure and an environment variable. So my question is how to determine if a field has Serde tag rename? I can use the determining in order to prevent the conversion only for "renamed" fields.
The text was updated successfully, but these errors were encountered:
I experience the same issue. A different Steps to reproduce would be to copy the example of the README.md and add a rename attribute to any of the variables, e.g.#[serde(rename="baz")] to the baz variable.
The issue is opened 9 months ago. I suppose it's not easy to fix it. I tried another library which doesn't have issue but has another one which is resolved in this one. Well, I fixed both of the issues in my fork of that library.
🐛 Bug description
Parsing finishes with error
Error::MissingValue
if I rename a field of parsed structure to a word consists of capitals only.🤔 Expected Behavior
Should be parsed without errors.
👟 Steps to reproduce
Define structure for parsing
Make
export DB_USER=postgres
before running, run and get panicvalue: MissingValue("DB_USER")
🌍 Your environment
Archlinux
envy version:
0.4.0
So. I see this code in lib.rs
So I understand why the
k
is got lowercased. I get the expected behavior if I remove this conversion but it's not a solution because I lose feature of automatic comparison of a field of parsed structure and an environment variable. So my question is how to determine if a field has Serde tagrename
? I can use the determining in order to prevent the conversion only for "renamed" fields.The text was updated successfully, but these errors were encountered: