Jens Balvig
Jens Balvig
Just to confirm, have you rebooted rails / made sure Spring was restarted?
I unfortunately don't have much to add 🙇 except I am experiencing a similar issue and ended up stuck at `umzug.up()` as well. The app was failing to boot with...
@glappen looks like maybe you have indeed stumbled on a bug! 😢 I believe the hash is in the correct format, but Spyke is not able to handle nested errors...
@glappen I've added a failing spec here: https://github.com/balvig/spyke/compare/master...jb%2Fnested-errors The problem seems to be that while Spyke uses `ActiveModel` to add errors onto the model: https://github.com/balvig/spyke/blob/f7d7076e89a9bb0bd81516651a2409151222eed5/lib/spyke/http.rb#L108 ...it however doesn't seem to...
@ASnow usually I will handle this at the faraday layer, as the problems that occur can differ from each user. You can massage the returned body in anyway you want...
@ASnow you could add some middleware _before_ that, that gets rid of blank strings, or even flesh out your own JSONParser middleware to come up with your own definition of...
> Is it ok that Result handles well(silent) when get not Hash? @ASnow sorry, I couldn't quite catch what you mean by this question?
@ASnow could you try showing a higher level test, for example based on a `Recipe.destroy` (maybe you can use some of the existing tests as a reference), that shows what...
Would be great to also see the JSON responses for this, seems like it might be related to https://github.com/balvig/spyke/issues/90 🙇 🙏
Thank you @paulvt! Seems this is related to Spyke being designed on the assumption of only having "one level of nesting" for associations (ie `/recipes/:recipe_id/something` will work but `/recipes/:recipe_id/:user_id/something` won't!)...