3 ms·
> 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 arr
by esafak 3y ago
> 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?
- layer8 3y agoBecause you can add new properties for response-level global information on an object, but not on an array.
- esafak 3y agoObviously 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.
- layer8 3y agoYes. 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.