konf icon indicating copy to clipboard operation
konf copied to clipboard

validateRequired enhancements

Open drejc opened this issue 4 years ago • 1 comments

  1. config.validateRequired() does not check for empty values only nulls
  2. the throw UnsetValueException holds only item name, does not telling which exact item is not set.

For instance if you have a configuration like this:

host:
   url:
   port:

database:
   url:
   port:

UnsetValueException will for instance throw "item url not set", better would be "host.url not set"

drejc avatar Aug 27 '20 18:08 drejc

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed.

stale[bot] avatar Jan 25 '21 05:01 stale[bot]