xcambar/halbert — pull request #7 by basti1302 (2013-10-25 09:20:40+00:00)
Title: Disable validation

I added an optional parameter to the parser function that can be used to disable most validation checks. Why? I tested Halbert (together with Traverson) against http://haltalk.herokuapp.com/ , an example HAL API written by Mike Kelly, who also wrote the HAL spec draft. It turns out that this service sometimes sends responses that are not 100% HAL compliant, which makes it impossible to consume it with Halbert, if validation is enabled.

Of course, this should be fixed in the service, not worked around in the client. On the other hand, when doing remoting, it is a good idea to be "be liberal in what you accept" (second part of Postel's law).

That's why I think it is a good idea to let user's of Halbert decide if they want to validate the resources they are receiving or not.