mathematic-inc / ts-japi

A highly-modular (typescript-friendly)-framework agnostic library for serializing data to the JSON:API specification
Apache License 2.0
202 stars 15 forks source link

[BUG] Polymorphic serializer does not honour input as array when single entry #83

Closed egmacke closed 5 months ago

egmacke commented 5 months ago

Describe the bug*

Invoking a PolymorphicSerializer with a data array containing one entry should return a document where the data field is an array of resources. Instead it returns a single Resource.