This repository was archived by the owner on Dec 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change
1
+ ```release-note:bug
2
+ `SingleNestedAttributeOf` - Fix custom type for Single Nested Attribute of
3
+ ```
Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ func (s SuperSingleNestedAttributeOf[T]) GetResource(ctx context.Context) schema
244
244
}
245
245
// * If user has not provided a custom type, we will use the default supertypes
246
246
if a .CustomType == nil {
247
- a .CustomType = supertypes.NewSingleNestedObjectTypeOf [T ](ctx ). ObjectType
247
+ a .CustomType = supertypes.NewSingleNestedObjectTypeOf [T ](ctx )
248
248
}
249
249
250
250
deprecationMessage := ""
@@ -299,7 +299,7 @@ func (s SuperSingleNestedAttributeOf[T]) GetDataSource(ctx context.Context) sche
299
299
}
300
300
// * If user has not provided a custom type, we will use the default supertypes
301
301
if a .CustomType == nil {
302
- a .CustomType = supertypes.NewSingleNestedObjectTypeOf [T ](ctx ). ObjectType
302
+ a .CustomType = supertypes.NewSingleNestedObjectTypeOf [T ](ctx )
303
303
}
304
304
305
305
deprecationMessage := ""
Original file line number Diff line number Diff line change @@ -489,7 +489,7 @@ func (s Super{{ .TypeName }}AttributeOf[T]) GetResource(ctx context.Context) sch
489
489
{{- if or (eq .TypeName "SingleNested") }}
490
490
// * If user has not provided a custom type, we will use the default supertypes
491
491
if a.CustomType == nil {
492
- a.CustomType = supertypes.NewSingleNestedObjectTypeOf[T](ctx).ObjectType
492
+ a.CustomType = supertypes.NewSingleNestedObjectTypeOf[T](ctx)
493
493
}
494
494
{{- end }}
495
495
@@ -593,7 +593,7 @@ func (s Super{{ .TypeName }}AttributeOf[T]) GetDataSource(ctx context.Context) s
593
593
{{- if or (eq .TypeName "SingleNested") }}
594
594
// * If user has not provided a custom type, we will use the default supertypes
595
595
if a.CustomType == nil {
596
- a.CustomType = supertypes.NewSingleNestedObjectTypeOf[T](ctx).ObjectType
596
+ a.CustomType = supertypes.NewSingleNestedObjectTypeOf[T](ctx)
597
597
}
598
598
{{- end }}
599
599
You can’t perform that action at this time.
0 commit comments