Skip to content

Commit

Permalink
fix: convert sid_key ints into strings (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
childish-sambino committed Jun 15, 2021
1 parent d1117e0 commit 93f5ae2
Show file tree
Hide file tree
Showing 28 changed files with 144 additions and 124 deletions.
7 changes: 7 additions & 0 deletions twilio/common/types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package common

import "strconv"

func Int32ToString(input int32) string {
return strconv.Itoa(int(input))
}
13 changes: 13 additions & 0 deletions twilio/common/types_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package common

import (
"testing"

"github.com/stretchr/testify/assert"
)

func TestInt32ToString(t *testing.T) {
assert.Equal(t, "123", Int32ToString(int32(123)))
assert.Equal(t, "0", Int32ToString(int32(0)))
assert.Equal(t, "-123", Int32ToString(int32(-123)))
}
4 changes: 2 additions & 2 deletions twilio/resources/accounts/v1/api_default.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 16 additions & 16 deletions twilio/resources/api/v2010/api_default.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions twilio/resources/autopilot/v1/api_default.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions twilio/resources/chat/v1/api_default.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions twilio/resources/chat/v2/api_default.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 93f5ae2

Please sign in to comment.