kamchatka-volcano / figcone

Read JSON, YAML, TOML, XML or INI configuration by declaring a struct
Microsoft Public License
100 stars 2 forks source link

Improve validation of optional parameters #11

Closed kamchatka-volcano closed 9 months ago

kamchatka-volcano commented 1 year ago

Validators for optional values should take the contained value as an argument and they shouldn't be invoked for empty values as there's nothing to validate in that case.