Trying to make a websocket route with bidi/yada/sente. Has anyone made sente/yada work together?
I'm looking for an example of uploading multiple files via a form to a yada resource and to have that work with the swagger-ui. Does anybody know of any examples in that direction?
Look at the update contact code in the phone book app in Edge. It uses formdata/multipart
Exceptions struggle to get automatically encoded to JSON. There are often encoding errors. But it's possible to override the exception interceptor chain in this case
so basically modify default-error-interceptor-chain and pass custom implementation for yada.interceptors/create-response ?
Yes.
On an error, the content type is renegotiated. If you really must pass back errors as JSON be careful. You could catch the exception in your response function and return your own JSON.
But the yada default behaviour if there is an exception in the chain is to renegotiate the representation and serialize the error back to the client
got it, thank you