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

chore: Generate new models #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
48 changes: 34 additions & 14 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,21 +1,41 @@
module github.com/form3tech-oss/go-form3/v6

go 1.16
go 1.21

replace github.com/mailru/easyjson => github.com/form3tech-oss/easyjson v0.7.7

require (
github.com/asaskevich/govalidator v0.0.0-20200819183940-29e1ff8eb0bb // indirect
github.com/go-openapi/errors v0.19.6
github.com/go-openapi/runtime v0.19.20
github.com/go-openapi/spec v0.19.9 // indirect
github.com/go-openapi/strfmt v0.19.5
github.com/go-openapi/swag v0.19.9
github.com/go-openapi/validate v0.19.10
github.com/google/uuid v1.1.1
github.com/mailru/easyjson v0.7.6 // indirect
github.com/mitchellh/mapstructure v1.3.3 // indirect
github.com/stretchr/testify v1.6.1
go.mongodb.org/mongo-driver v1.4.0 // indirect
golang.org/x/net v0.0.0-20200822124328-c89045814202 // indirect
github.com/go-openapi/errors v0.20.4
github.com/go-openapi/runtime v0.26.0
github.com/go-openapi/strfmt v0.21.7
github.com/go-openapi/swag v0.22.4
github.com/go-openapi/validate v0.22.1
github.com/google/uuid v1.3.1
github.com/stretchr/testify v1.8.4
)

require (
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/go-logr/logr v1.2.4 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-openapi/analysis v0.21.4 // indirect
github.com/go-openapi/jsonpointer v0.20.0 // indirect
github.com/go-openapi/jsonreference v0.20.2 // indirect
github.com/go-openapi/loads v0.21.2 // indirect
github.com/go-openapi/spec v0.20.9 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/oklog/ulid v1.3.1 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rogpeppe/go-internal v1.11.0 // indirect
go.mongodb.org/mongo-driver v1.12.1 // indirect
go.opentelemetry.io/otel v1.19.0 // indirect
go.opentelemetry.io/otel/metric v1.19.0 // indirect
go.opentelemetry.io/otel/trace v1.19.0 // indirect
golang.org/x/sys v0.12.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
272 changes: 137 additions & 135 deletions go.sum

Large diffs are not rendered by default.

10 changes: 4 additions & 6 deletions pkg/form3/subscriptions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,15 @@ func testCreateAndUpdateSubscriptions(t *testing.T, attributes *models.Subscript
WithData(models.SubscriptionUpdate{
ID: &id,
OrganisationID: &organisationID,
Attributes: &models.SubscriptionUpdateAttributes{
Deactivated: true,
},
Version: &version,
Attributes: (&models.SubscriptionUpdateAttributes{}).WithDeactivated(true),
Version: &version,
})
updateResp, err := updateReq.Do()
require.NoError(t, err)
assert.Equal(t, id.String(), updateResp.Data.ID.String())
assert.Equal(t, true, updateResp.Data.Attributes.Deactivated)
assert.Equal(t, true, *updateResp.Data.Attributes.Deactivated)

//delete
// delete
_, err = f3.Subscriptions.DeleteSubscription().WithID(id).WithVersion(version + 1).Do()
require.NoError(t, err)
}
Expand Down
72 changes: 72 additions & 0 deletions pkg/generated/client/accounts/list_accounts_requests.go

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

14 changes: 0 additions & 14 deletions pkg/generated/client/form3_public_api_client.go

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

This file was deleted.

Loading