New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ambiguous error message on required #51
Comments
The error is correct I would recommend to change the name of the field from |
Ok, but it's anoying to have to use
instead of
I planed to do a pull request for this issue but than I realized that even full name is not what I want.
What I expect is more like
So I'm not using this lib anymore :) Not because it's bad. |
You are making assumptions based on the Existing logic returns the name of the field which is required and its value is empty (not defined in any source). Based on your code I would suggest naming the field: |
Yeah, no doubt. As I sayed, I don't use this lib anymore. Less is more and it works for me. And instead of .env, yaml, toml, ... files you can use shell file for sourcing the dev environment. |
Hi, thanks for this project.
We have only one painfull issue with this library.
We use this for web services configuration and the config struct is nested and contains a lot of URLs to other services.
Sometimes we forgot to add secret to Vault, but error message is not much helpfull.
Here is our common usage
https://play.golang.org/p/XdV_kGtkQn7
The text was updated successfully, but these errors were encountered: