Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Some good points - particularly about not returning arrays.

I don't get that one; why is an object with an array property more evolution friendly than an array of objects?



Because you can add new properties for response-level global information on an object, but not on an array.


Obviously if it was global, but if not, you'd include it in the objects in the array, no? This is not a question of schema evolution per se.


Yes. The TFA argument is about top-level information, for example when paging through a collection. Personally I think HTTP headers could fit the purpose for such meta information.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: