[BUG] Environment variable substitution fails silently if "__format" parser is not supported

Author: KalleVCreated Dec 11, 2023Updated Jul 10, 2026
Labelspr-welcomebugbreaking-changegood-first-issue

Describe the bug Defining a custom-environment-variables.json file with "__format" definitions that do not match a supported parser leads to the configuration being silently ignored.

Example:

json
{
  "hostname": {
    "__name": "HOSTNAME",
    "__format": "string"
  }
}

Expected behavior An error when attempting to use an unsupported parser.

Screenshots N/A

Please tell us about your environment:

  • node-config version: 3.3.9
  • node-version: 20.x

Other information

Related code: