diff --git a/record.go b/record.go index 67b8d32..1419829 100644 --- a/record.go +++ b/record.go @@ -15,6 +15,12 @@ type Record struct { Fields map[string]interface{} `json:"fields"` CreatedTime string `json:"createdTime,omitempty"` Deleted bool `json:"deleted,omitempty"` + + // The Airtable API will perform best-effort automatic data conversion + // from string values if the typecast parameter is passed in. + // Automatic conversion is disabled by default to ensure data integrity, + // but it may be helpful for integrating with 3rd party data sources. + Typecast bool `json:"typecast,omitempty"` } // GetRecord get record from table diff --git a/table.go b/table.go index b432326..000b0bb 100644 --- a/table.go +++ b/table.go @@ -13,6 +13,12 @@ import ( type Records struct { Records []*Record `json:"records"` Offset string `json:"offset,omitempty"` + + // The Airtable API will perform best-effort automatic data conversion + // from string values if the typecast parameter is passed in. + // Automatic conversion is disabled by default to ensure data integrity, + // but it may be helpful for integrating with 3rd party data sources. + Typecast bool `json:"typecast,omitempty"` } // Table represents table object