If a relation is listed in the resource class as single-cardinality, but the server returns an array, Crnk triggers a ClassCastException in ResourceUpsert#setRelationFieldAsync:361 (in 3.4) because it assumes that the value will be a ResourceIdentifier. Ideally, Crnk should be lenient and accept what the server sent; at the very least, it should produce a meaningful error message instead.
If a relation is listed in the resource class as single-cardinality, but the server returns an array, Crnk triggers a
ClassCastException
inResourceUpsert#setRelationFieldAsync:361
(in 3.4) because it assumes that the value will be aResourceIdentifier
. Ideally, Crnk should be lenient and accept what the server sent; at the very least, it should produce a meaningful error message instead.