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.
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 ofCollectionModel<EntityModel<Entity>>
throws an exception:java.lang.IllegalArgumentException: Given links must not be null!
when the EntityModels in the collection do not contain links.