toedter / spring-hateoas-jsonapi

A JSON:API media type implementation for Spring HATEOAS
Apache License 2.0
106 stars 15 forks source link

Improve deserialitazion of collection resources #54

Closed toedter closed 2 years ago

toedter commented 2 years ago

Even this is not required for deserialize JSON for PATCH and POST request, it would be nice if JSON:API compliant collection resoources could be deserialized into Spring HATEOAS collection models.

While a CollectionModel<Entity> deserializes well, the deserialization of CollectionModel<EntityModel<Entity>> throws an exception: java.lang.IllegalArgumentException: Given links must not be null! when the EntityModels in the collection do not contain links.