A handful of drive-by tweaks to the /drip implementation:
Update docs to clarify intended uses (a helpful reminder for myself, if nothing else)
Ensure all bad requests use standard JSON error responses
Switch from binary to text content type
This also includes a small fix to the internal testing library, dropping the assert.RoughDuration() helper in favor of an updated generic assert.RoughlyEqual() implementation that works with the time.Duration type.
A handful of drive-by tweaks to the
/drip
implementation:This also includes a small fix to the internal testing library, dropping the
assert.RoughDuration()
helper in favor of an updated genericassert.RoughlyEqual()
implementation that works with thetime.Duration
type.