-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add configuration validation #1380
Conversation
b4dbd65
to
8e70be7
Compare
…rTx is valid. Remove some test as there is require value without default value
cb7a3a7
to
3254d45
Compare
I add the required flag on all data even if it means that the default config (without envs) is not valid anymore. |
} | ||
|
||
Log struct { | ||
Format string | ||
Format string `validate:"required"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could add oneof=text json
> https://godoc.org/gopkg.in/go-playground/validator.v9#hdr-One_Of
With that, we can remove l149 and we could do the same for the logLevel
close #1376
Add validation for required fields + require minium one signers