Loads and validates a configuration file. Supports JSON and YAML formats.
Path to the configuration file
The validated configuration object
If the configuration is invalid
If the file can't be read
Loads and validates a configuration file. Supports JSON and YAML formats.