nspcc-dev / neofs-node

NeoFS is a decentralized distributed object storage integrated with the Neo blockchain
https://fs.neo.org
GNU General Public License v3.0
32 stars 38 forks source link

Deleting unnecessary maps in the config #2993

Open End-rey opened 3 weeks ago

End-rey commented 3 weeks ago

Is your feature request related to a problem? Please describe.

I'm always frustrated when there are fields in the config that are difficult to validate, particularly in the form of a map. In the node config, there are fields:

Describe the solution you'd like

Make these fields lists.

Describe alternatives you've considered

Leave everything as it is, but then complex validation will remain and it will not be easy to reuse the config.

Additional context

Refs https://github.com/nspcc-dev/neofs-node/pull/2981#issuecomment-2447033994. After this, we can use viper.UnmarshalExact for validation and reuse the config in the code.