Documentation for serialization adapters #6466
Unanswered
thierry2015
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I don't think I found any piece of documentation regarding serialization adapters on the official documentation, which seems to be a big piece of information when it comes to SDK integration and generic error handling. I banged my head for about a day trying to make response mapping work using a middleware since this is where most frameworks would implement serialization and error transformation when dedicated exception handlers don't exist.
I think it's worth showing what I implemented. The SDK I used was generated by the
openapi-generator'stypescript-fetchtemplate.Out of topic, but this here is one example, there are lots of unhappy paths and more advanced recipes missing in the documentation to allow for more complex implementation for people coming from other frameworks like Next.js or even Laravel. I really enjoy working with TanStack, probably sticking to it for the upcoming years, but the documentation has to improve on that end (many of my colleagues from other workplaces tend to agree as well, some are hesitant to move to TanStack mostly because of those missing documentation points).
Beta Was this translation helpful? Give feedback.
All reactions