Make validation more simple and reuse config in components #2994
Labels
config
Configuration format update or breaking change
enhancement
Improving existing functionality
I3
Minimal impact
neofs-ir
Inner Ring node application issues
neofs-storage
Storage node application issues
S3
Minimally significant
U3
Regular
Milestone
Is your feature request related to a problem? Please describe.
I'm always frustrated when additional proprietary logic is used for validation, when existing solutions can be used. It is also unpleasant when the config structure is used only for validation, although it can be used in various components.
Describe the solution you'd like
Make validation through viper.UnmarshalExact and reuse the config struct in the components.
Describe alternatives you've considered
Keeping as is, but with a lot of code and duplicate structures.
Additional context
Refs #2981.
First, you need to change the config so that you can perform validation simply: #2993.
The text was updated successfully, but these errors were encountered: