SerialisationException removes all relevant context information
Opened this issue · 2 comments
libre-man commented
When a client submits data that does not follow the right schema (for instance an array is given where a string is expected) the error returned by the generated client is SerializationException
with no body. This makes it very hard for clients to see where their data doesn't match the expected pattern. It would be nice if we can give the same kind of feedback as when the data doesn't validate, so give what was given where, and what was expected.
libre-man commented
An example we just ran in to: if you pass a string instead of a number the server will respond with {}
and we can't add any logging for this case either it seems.
libre-man commented
Would any work from us be appreciated on this? If so, any suggestions on how to approach it?