You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tmpl, err:=formatResourceNameTemplateFromPath(m, b)
1612
-
iferr!=nil {
1613
-
returnerr
1616
+
annotation.HasResourceNameGeneration=true
1617
+
break
1618
+
}
1619
+
}
1620
+
1621
+
ifannotation.HasResourceNameGeneration {
1622
+
for_, b:=rangem.PathInfo.Bindings {
1623
+
bAnn, ok:=b.Codec.(*pathBindingAnnotation)
1624
+
if!ok {
1625
+
continue
1614
1626
}
1615
-
annotation.ResourceNameTemplate=tmpl
1616
-
for_, path:=rangeb.TargetResource.FieldPaths {
1617
-
accSegments, err:=makeAccessors(path, m)
1627
+
// To make sure the Rust code for each binding returns the same type, we set HasResourceNameGeneration = true for all bindings to cue each binding to produce the same typed result (even if this specific binding does not have a TargetResource.)
1628
+
bAnn.HasResourceNameGeneration=true
1629
+
1630
+
ifb.TargetResource!=nil {
1631
+
tmpl, err:=formatResourceNameTemplateFromPath(m, b)
0 commit comments