Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

time.Time fields may be null #99

Open
tarasyarema opened this issue Apr 27, 2021 · 0 comments
Open

time.Time fields may be null #99

tarasyarema opened this issue Apr 27, 2021 · 0 comments

Comments

@tarasyarema
Copy link

Describe the bug

Some time fields (the Invoice.DueAt for instance) may return a null value from the API but the client does not support pointer time fields, hence the set value on the resource is a zero value time.Time.

To Reproduce

Create an Invoice with no DueAt and fetch it via the API client in Go.

Expected behavior

DueAt to be a *time.Time, hence when a null value is fetched it's a nil and not a t time.Time with t.IsZero() == true.

Your Environment

  • Which version of this library are you using? github.com/recurly/recurly-client-go/v3 v3.13.0
  • Which version of golang are you using? go version go1.15 darwin/amd64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant