Skip to content

Commit 1e796c8

Browse files
committed
wip
1 parent a584c7b commit 1e796c8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

internal/proto5server/server_listresource_tfprotov5_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ import (
2323
// a resource type defined in SDKv2
2424
var sdkResource sdk.Resource = sdk.Resource{
2525
Schema: map[string]*sdk.Schema{
26-
"id": &sdk.Schema{
26+
"id": {
2727
Type: sdk.TypeString,
2828
},
29-
"name": &sdk.Schema{
29+
"name": {
3030
Type: sdk.TypeString,
3131
},
3232
},

list/list_resource.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ type ListRequest struct {
100100
// [ListResult.Resource] field.
101101
IncludeResource bool
102102

103-
ResourceSchema fwschema.Schema
104-
ResourceIdentitySchema fwschema.Schema
103+
ResourceSchema fwschema.Schema // 💭
104+
ResourceIdentitySchema fwschema.Schema // 💭
105105
}
106106

107107
// NewListResult creates a new [ListResult] with convenient defaults
@@ -125,7 +125,7 @@ func (r ListRequest) NewListResult() ListResult {
125125
//
126126
// For convenience, a provider implementation may choose to convert a slice of
127127
// results into an iterator using [slices.Values].
128-
type ListResultsStream struct {
128+
type ListResultsStream struct { // 💭 this is kind-of a "union" type; use one, but not both
129129
// Results is a function that emits [ListResult] values via its push
130130
// function argument.
131131
//

0 commit comments

Comments
 (0)