If I got it correctly, you are publishing DCPs based on the desribed Schema. The Components for those DCPs contain Component Links which are to expanded (at least one level).
I’m not sure how the CT you’re using for those DCPs looks? You mentioned “Generate Data Presentation” in a comment. Note that this built-in DXA CT is not really intended for that purpose; it is intended for dynamically expanding linked Components.
I would expect that you’re using your own (Dynamic) Component Template which invokes the “Render Component Content” TBB and has DXA CT metadata, so it renders a full-fledged DXA Entity Model with MVC data.
Furthermore, you should ensure that the “Render Component Content” TBB specifies an appropriate expandLinkDepth
parameter value in the invocation of the “Generate DXA R2 Entity Model” TBB.
Note that the “Generate Data Presentation” CT invokes the “Generate R2 Entity Model” TBB directly and also specifies an expandLinkDepth
parameter value. This is the depth that Component Links should be (statically) expanded within a Data Presentation (which is normally used for dynamic expansion). Yes, it’s confusing, I know.
Note 2: you can choose between static expansion (CM-side) or dynamic expansion (CD-side in the DXA Model Service) of Component Links by associating your Schema with the”Generate Data Presentation” CT or not. If you use dynamic expansion, the CM-side will indeed only render an Id
and it will be a DCP identifier formatted as {ComponentId}-{TemplateId}
where {TemplateId}
is the identifier of the “Generate Data Presentation” CT.