xiaohutai / jsonapi

[Bolt Extension] JSON API for Bolt CMS
https://market.bolt.cm/view/bolt/jsonapi
MIT License
55 stars 18 forks source link

`included` should always be an array #66

Closed rwd closed 7 years ago

rwd commented 7 years ago

Per the JSON API spec, included should always be an array, but in the output of this extension (observed at version 3.0.15), it is sometimes a JSON object keyed with string representations of integers, e.g. "0", "1", "2".

This prevents consumption by clients.

xiaohutai commented 7 years ago

Hi @rwd Thanks for reporting this issue. Could you check if dev-master in Bolt works for you, then I'll make a new release.

https://github.com/xiaohutai/jsonapi/commit/43ede96075560c14345dee3b437dd2837d6a048f

xiaohutai commented 7 years ago

I went ahead and made a release v3.0.16.

If you are still experiencing issues, let me know.

rwd commented 7 years ago

@xiaohutai the new release has resolved this issue for us, thank you.