Erik Rothoff Andersson

Results 86 comments of Erik Rothoff Andersson

Excellent find! Do you think you could make a pull request with this? I can help you by writing a test when it's up.

Work has started on the following branch: https://github.com/erkie/ApiModel/tree/builders

Currently it's not possible to return multiple objects per response in that way, however, if you were to refactor the response to look like this: (ie nested) ``` json {...

The idea was that `isInvalid` only relates to client-side errors, but seeing as a lot of 4xx errors relate to things the user cannot impact, I understand the problem. Looking...

Great questions. I think ApiModel should come with some sort of default error handling, perhaps the rails format it expects today. Customizing error messages and parsing probably goes hand-in-hand with...

I would say add an `error` parameter at the end of all callbacks really. I have a bad habit of ignoring errors, which shouldn't be the default... I guess with...

Thinking about it again, another option that would not require adding `error` parameters, is to make the `findArray` callback: `[ModelType]?` i.e `nil` if a response failed. In addition the the...

Ion cannons and laser beams, on it.

A lot of people have suggested this, but everyone has destroyed different parts of the page. How should it handle this?

That looks great! Any demo link? And could you please rename the project to something other than Kick Ass? I don't want it to be confused with the "real" Kick...