File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ import (
2323// a resource type defined in SDKv2
2424var 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 },
Original file line number Diff line number Diff 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 //
You can’t perform that action at this time.
0 commit comments