[api] Add better error handling. Set validator to non-strict mode
[dist] Release v0.5.1