Skip to content

Commit

Permalink
Update to the latest version of httpin including omitempty
Browse files Browse the repository at this point in the history
  • Loading branch information
alecsammon committed May 20, 2024
1 parent c6cf0d9 commit 6601831
Show file tree
Hide file tree
Showing 19 changed files with 97 additions and 122 deletions.
12 changes: 6 additions & 6 deletions addresses.go

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

18 changes: 9 additions & 9 deletions adjustments.go

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

12 changes: 6 additions & 6 deletions businesses.go

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

14 changes: 7 additions & 7 deletions customers.go

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

12 changes: 6 additions & 6 deletions discounts.go

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

6 changes: 3 additions & 3 deletions events.go

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

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/PaddleHQ/paddle-go-sdk
go 1.21.0

require (
github.com/ggicci/httpin v0.18.1
github.com/ggicci/httpin v0.18.2-0.20240520043217-eed0621e7f51
github.com/hashicorp/go-cleanhttp v0.5.2
github.com/stretchr/testify v1.9.0
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/ggicci/httpin v0.18.1 h1:KPgt5yHl7qf9+YAQrKlJeHbDtkaF+D+HN/4dtlIkm2w=
github.com/ggicci/httpin v0.18.1/go.mod h1:hzsQHcbqLabmGOycf7WNw6AAzcVbsMeoOp46bWAbIWc=
github.com/ggicci/httpin v0.18.2-0.20240520043217-eed0621e7f51 h1:6GpMcU3X/gs/VQHg91VMkTij4rMYYPNE3OhV4OsdrX4=
github.com/ggicci/httpin v0.18.2-0.20240520043217-eed0621e7f51/go.mod h1:hzsQHcbqLabmGOycf7WNw6AAzcVbsMeoOp46bWAbIWc=
github.com/ggicci/owl v0.8.2 h1:og+lhqpzSMPDdEB+NJfzoAJARP7qCG3f8uUC3xvGukA=
github.com/ggicci/owl v0.8.2/go.mod h1:PHRD57u41vFN5UtFz2SF79yTVoM3HlWpjMiE+ZU2dj4=
github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=
Expand Down
1 change: 0 additions & 1 deletion internal/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ var versionFs embed.FS

func init() {
core.RegisterDirective("paddle_include", &DirectiveInclude{})
core.RegisterDirective("query", &DirectiveQuery{}, true)
}

// New returns a new Client with the provided http.Client, apiKey, and baseURL.
Expand Down
2 changes: 1 addition & 1 deletion internal/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func TestClient(t *testing.T) {

type Req struct {
ID string `in:"query=id"`
Optional *string `in:"query=optional,omitempty"`
Optional *string `in:"query=optional;omitempty"`
}

type ReqPath struct {
Expand Down
24 changes: 0 additions & 24 deletions internal/client/directive_query.go

This file was deleted.

4 changes: 2 additions & 2 deletions notification_logs.go

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

6 changes: 3 additions & 3 deletions notification_settings.go

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

18 changes: 9 additions & 9 deletions notifications.go

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

Loading

0 comments on commit 6601831

Please sign in to comment.