zenflow / composite-service

Compose multiple services into one
MIT License
7 stars 1 forks source link

Config validation error improvements #5

Open zenflow opened 4 years ago

zenflow commented 4 years ago

Config validation errors:

  1. should show the invalid value
  2. should show link to documentation for the relevant interface field
  3. should include full description of type instead of "1 more" (issue for https://github.com/gristlabs/ts-interface-checker)
  4. should not show stack trace (?)

Also, maybe validation errors for config.services.foo should appear like nested validation errors in config. Or maybe validation errors for config.serviceDefaults should not appear like nested validation errors in config.

Also, not an enhancement to functionality, but for maintainability https://github.com/gristlabs/ts-interface-builder/pull/24 needs to be documented & an official release made.

zenflow commented 3 years ago

Update: the babel macro in ts-interface-builder has been released in the official package, but still needs to be documented