Skip to content

Commit af2855c

Browse files
authored
Add support for injecting custom fields of type bytes (#488)
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 77778f3 commit af2855c

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

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

0 commit comments

Comments
 (0)