safe_config 1.2.0 safe_config: ^1.2.0 copied to clipboard
A safe and convenient way to read YAML configuration files.
Changelog #
1.2.0 #
- Allow
ConfigurationItem
to validate their values by overridingvalidate
(Thanks to Denis Albuquerque, @zidenis)
1.1.3 #
- Ignore private variables declared in ConfigurationItem subclasses
1.1.2 #
- Ignore static variables declared in ConfigurationItem subclasses
1.1.1 #
- Throw exception if an unexpected key is found when reading configuration.
1.1.0 #
- Enable support for reading environment variables.
- Allow decoders for ConfigurationItem subclasses that may have multiple representations, e.g. a DatabaseConnectionConfiguration from a database connection string.
1.0.4 #
- Fix issue where nested ConfigurationItems marked as optional would fail to parse.