Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.1.4 (Dijkstra SR4), 2.2.1 (Evans SR1)
-
Fix Version/s: 2.3 M1 (Fowler), 2.1.5 (Dijkstra SR5), 2.2.2 (Evans SR2)
-
Component/s: Repositories
-
Labels:
-
Sprint:55 - Evans SR2
Description
When nesting projections, Lists/Maps are not included in the processing. Sample:
The following snippet represents the nested projection, which contains a list of limitations.
"name" : "Light", "description" : "Light", "enabled" : true, "limitations" : [ { "name" : "Request", "description" : "Number of requests per billing period", "type" : null, "value" : 20.0 } ], "links" : [ ], "content" : [ ], "links" : [ { "rel" : "self", "href" : "http://localhost:8080/web/specifications/1310{?projection}" }, { "rel" : "limitations", "href" : "http://localhost:8080/web/specifications/1310/limitations" }, { "rel" : "product", "href" : "http://localhost:8080/web/specifications/1310/product" }
Using the parent projection, which contains the nested projection
"name" : "Light", "description" : "Light", "prices" : [ { "value" : -1.0, "currency" : "USD", "unit" : "Request", "period" : "Month", "interval" : 1, "approximation" : false, "component" : null } ], "productCategory" : { "name" : "Price comparison", "description" : "Blablablaba" }, "specifications" : [ { "name" : "Light", "description" : "Light", "enabled" : true } ], "trialPeriod" : null, "trialInterval" : 0, "links" : [ ], "content" : [ ], "links" : [ { "rel" : "self", "href" : "http://localhost:8080/web/products/1300{?projection}" }, { "rel" : "specifications", "href" : "http://localhost:8080/web/products/1300/specifications" }, { "rel" : "product", "href" : "http://localhost:8080/web/products/1300/product" }, { "rel" : "productCategory", "href" : "http://localhost:8080/web/products/1300/productCategory" }, { "rel" : "accounts", "href" : "http://localhost:8080/web/products/1300/accounts" } ]
one can see, that all types (int, string) etc. are rendered, but the list not.
Attachments
Issue Links
- duplicates
-
DATAREST-394 Projections are not applied to collection attributes
-
- Closed
-
- is duplicated by
-
DATAREST-477 VenueProjection with List<ContactProjection> returns List<Contact> instead
-
- Resolved
-