Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
name: Set up Go
uses: actions/[email protected]
with:
go-version: '1.15'
go-version: '1.16'
-
name: Import GPG key
id: import_gpg
Expand Down
13 changes: 9 additions & 4 deletions sdk/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ type ListRecordsOptions struct {
}

type listRecordsResponseRecord struct {
ID string `json:"id"`
RawCreatedTime string `json:"createdTime"`
Fields map[string]string `json:"fields"`
ID string `json:"id"`
RawCreatedTime string `json:"createdTime"`
RawFields map[string]json.RawMessage `json:"fields"`
}

type listRecordsResponse struct {
Expand Down Expand Up @@ -111,8 +111,13 @@ func (c *Client) ListRecords(workspaceID, table string, options *ListRecordsOpti
if err != nil {
return nil, err
}
fields := make(map[string]string)
for key, field := range raw.RawFields {
val, _ := field.MarshalJSON()
fields[key] = string(val)
}
r := Record{
Fields: raw.Fields,
Fields: fields,
ID: raw.ID,
CreatedTime: created,
}
Expand Down