RFC: validation errors as JSON
This is a "request for comments" changeset. There are things to sort out and possibly improve:
- returning errors as stdout is non-standard, and somehow a workaround for not getting log messages interleaved
- we could instead put log messages as part of the JSON output (all in stderr then)
- the
errors
key in the JSON output might not be the best place (just a wild guess); we should see how other projects do
Edited by Denis Laxalde