Skip to content

Commit 54d60e2

Browse files
committed
Update pkg/model/sdk_api.go
1 parent 63cb4ec commit 54d60e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/model/sdk_api.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ var (
4141
"string": "string",
4242
"bool": "boolean",
4343
"time.Time": "timestamp",
44+
"bytes": "blob",
4445
}
4546
)
4647

@@ -136,7 +137,7 @@ func (a *SDKAPI) GetShapeRefFromType(
136137
// first check to see if the element type is a scalar and if it is, just
137138
// create a ShapeRef to represent the type.
138139
switch elemType {
139-
case "string", "bool", "int", "int64", "float64", "time.Time":
140+
case "string", "bool", "int", "int64", "float64", "time.Time", "bytes":
140141
sdkType, found := GoTypeToSDKShapeType[elemType]
141142
if !found {
142143
msg := fmt.Sprintf("GetShapeRefFromType: unsupported element type %s", elemType)

0 commit comments

Comments
 (0)