Skip to content

Commit

Permalink
fix: referred resource inside a list fix (#717)
Browse files Browse the repository at this point in the history
* fix: referred resource inside a list fix

* fix: empty commit

---------

Co-authored-by: Shubham Chaturvedi <[email protected]>
  • Loading branch information
ShubhamChaturvedi7 and Shubham Chaturvedi authored Nov 13, 2024
1 parent 78b79ae commit 801f0f3
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,16 @@ private Symbol createCollectionSymbol(CollectionShape shape) {
Symbol reference = toSymbol(shape.getMember());
// Shape name will be unused for symbols that represent a slice, but in the event it does we set the collection
// shape's name to make debugging simpler.
if (
model
.expectShape(shape.getMember().getTarget())
.hasTrait(ReferenceTrait.class)
) {
reference =
toSymbol(model.expectShape(shape.getMember().getTarget()))
.getProperty("Referred", Symbol.class)
.get();
}
return symbolBuilderFor(shape, getDefaultShapeName(shape))
.putProperty(SymbolUtils.GO_SLICE, true)
.putProperty(
Expand Down

0 comments on commit 801f0f3

Please sign in to comment.