-
Notifications
You must be signed in to change notification settings - Fork 51
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
required tag not being honoured #35
Comments
Hi @shaumux, thank you for reporting this. Can you share us your yaml file please (without sensitive data of course 😉) ? |
Here's the yaml file:
Here's the code for loading:
This works even if I start removing fields from the yaml file |
Hey @shaumux, unfortunately, maps are not supported on Confita. It involves a lot of reflections and we do not want to go over it. Instead of having a map for each database configuration you could have a field for each? I know that is not the best solution but this might be a way to bypass the issue. |
The issue I'm having is not with the Database config but rather RabbitMQ config. |
I created a config struct like this
confita seems to be ignoring the required tag for all but the password field in the rabbitMQ config
The file I'm reading from is a yaml file
The text was updated successfully, but these errors were encountered: