Skip to content

Add redirect section to config validation

Hayley Swimelar requested to merge improve-invalid-redirect-stanza-errors into master

This MR improves the error messages that are emitted when the redirect section of the configuration are misconfigured.

Error on no disable section in redirect:

configuration error: validation: `storage.redirect` section must include `disable: (bool)`
Usage:
  registry serve <config> [flags]

Flags:
  -h, --help   help for serve

Error on disable given improper type:

configuration error: validation: `storage.redirect.disable` must be a boolean got: "yes" (string)
Usage:
  registry serve <config> [flags]

Flags:
  -h, --help   help for serve
Edited by Hayley Swimelar

Merge request reports