Fork me on GitHub
#yada
<
2018-02-13
>
ribelo02:02:45

Trying to make a websocket route with bidi/yada/sente. Has anyone made sente/yada work together?

thegeez16:02:15

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?

malcolmsparks16:02:34

Look at the update contact code in the phone book app in Edge. It uses formdata/multipart

malcolmsparks18:02:53

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

vijayakkineni18:02:32

so basically modify default-error-interceptor-chain and pass custom implementation for yada.interceptors/create-response ?

malcolmsparks18:02:00

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.

malcolmsparks18:02:08

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

vijayakkineni18:02:51

got it, thank you