Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SerialisationException removes all relevant context information #1235

Open
libre-man opened this issue Apr 8, 2024 · 1 comment
Open

SerialisationException removes all relevant context information #1235

libre-man opened this issue Apr 8, 2024 · 1 comment

Comments

@libre-man
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant