RWS / dxa-web-application-dotnet

SDL Digital Experience Accelerator .NET MVC web application
Apache License 2.0
19 stars 35 forks source link

Component Link mapping fails after link depth reached in web application. #67

Closed stanlk closed 5 years ago

stanlk commented 6 years ago

In CM we have expandLinkDepth parameter, that will limit how many level of linked components are added to JSON.

However in web app DXA 2.0 during model mapping it fails, when link depth limit is reached in json. Error message: Unable to map field 'SimilarBooks' to property Book.SimilarBooks of type ...

It fails on this line of BuildEntityModel method of DefaultModelBuilder, because SchemaId is null. SemanticSchema semanticSchema = SemanticMapping.GetSchema(entityModelData.SchemaId, localization);

More details here

rpannekoek commented 5 years ago

Internal Issue ID (for tracking purposes): CRQ-12790

rpannekoek commented 5 years ago

Fixed in DXA 2.2