From 549df0b3f2cce7849b2f815adb979f41cee54aac Mon Sep 17 00:00:00 2001 From: zepatrik <11patti1@gmx.de> Date: Thu, 5 Mar 2020 17:30:47 +0100 Subject: [PATCH 1/8] u --- driver/configuration/provider_viper.go | 4 ++++ quickstart.yml | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/driver/configuration/provider_viper.go b/driver/configuration/provider_viper.go index 02e88dca8811..cf18e2e52438 100644 --- a/driver/configuration/provider_viper.go +++ b/driver/configuration/provider_viper.go @@ -145,6 +145,10 @@ func (p *ViperProvider) PublicListenOn() string { func (p *ViperProvider) DSN() string { if dsn := viperx.GetString(p.l, ViperKeyDSN, ""); len(dsn) > 0 { + if dsn == "memory" { + // we should run migrations in this case but not here + return "sqlite://:memory:?_fk=true" + } return dsn } diff --git a/quickstart.yml b/quickstart.yml index 4267b171aeb9..a4312f70fc6c 100644 --- a/quickstart.yml +++ b/quickstart.yml @@ -9,7 +9,7 @@ services: kratos-migrate: image: oryd/kratos:latest-sqlite environment: - - DSN=sqlite:///home/ory/sqlite/db.sqlite?_fk=true + - DSN=sqlite://:memory:?_fk=true volumes: - type: volume @@ -69,7 +69,7 @@ services: - "4434:4434" # admin restart: unless-stopped environment: - - DSN=sqlite:///home/ory/sqlite/db.sqlite?_fk=true + - DSN=sqlite://:memory:?_fk=true command: serve -c /etc/config/kratos/.kratos.yml --dev volumes: From 0fd738501f2f65f83cec3d88e2fd8b5e933a025c Mon Sep 17 00:00:00 2001 From: zepatrik <11patti1@gmx.de> Date: Sun, 8 Mar 2020 15:54:40 +0100 Subject: [PATCH 2/8] u --- driver/configuration/provider_viper.go | 4 ---- driver/registry.go | 12 +++++++++--- driver/registry_default.go | 7 +++++++ 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/driver/configuration/provider_viper.go b/driver/configuration/provider_viper.go index cf18e2e52438..02e88dca8811 100644 --- a/driver/configuration/provider_viper.go +++ b/driver/configuration/provider_viper.go @@ -145,10 +145,6 @@ func (p *ViperProvider) PublicListenOn() string { func (p *ViperProvider) DSN() string { if dsn := viperx.GetString(p.l, ViperKeyDSN, ""); len(dsn) > 0 { - if dsn == "memory" { - // we should run migrations in this case but not here - return "sqlite://:memory:?_fk=true" - } return dsn } diff --git a/driver/registry.go b/driver/registry.go index 83ad054ddaf1..e216c15d7d62 100644 --- a/driver/registry.go +++ b/driver/registry.go @@ -1,9 +1,9 @@ package driver import ( - "github.com/go-errors/errors" "github.com/gorilla/sessions" "github.com/justinas/nosurf" + "github.com/pkg/errors" "github.com/sirupsen/logrus" "github.com/ory/kratos/courier" @@ -107,9 +107,15 @@ type selfServiceStrategy interface { } func NewRegistry(c configuration.Provider) (Registry, error) { - driver, err := dbal.GetDriverFor(c.DSN()) + dsn := c.DSN() + dsnAddress := dsn + if dsn == "memory" { + dsnAddress = "sqlite://:memory:?_fk=true" + } + + driver, err := dbal.GetDriverFor(dsnAddress) if err != nil { - return nil, err + return nil, errors.WithStack(err) } registry, ok := driver.(Registry) diff --git a/driver/registry_default.go b/driver/registry_default.go index 67be33de40ef..019e23adab27 100644 --- a/driver/registry_default.go +++ b/driver/registry_default.go @@ -335,6 +335,13 @@ func (m *RegistryDefault) Init() error { bc.Reset() return errors.WithStack( backoff.Retry(func() error { + dsnAddress := m.c.DSN() + // if dsn is memory we have to run the migrations on every start + if dsnAddress == "memory" { + if err := registry.Persister().MigrateUp(context.Background()); err != nil { + return nil, errors.WithStack(err) + } + } pool, idlePool, connMaxLifetime := sqlcon.ParseConnectionOptions(m.l, m.c.DSN()) c, err := pop.NewConnection(&pop.ConnectionDetails{ URL: m.c.DSN(), From 642684e373cbfd089b106289755756e16967f3de Mon Sep 17 00:00:00 2001 From: zepatrik <11patti1@gmx.de> Date: Fri, 13 Mar 2020 12:52:24 +0100 Subject: [PATCH 3/8] u --- driver/configuration/provider.go | 1 + driver/configuration/provider_viper.go | 9 +++++++++ driver/registry.go | 17 ++++++++++------- driver/registry_default.go | 7 ------- quickstart.yml | 4 ++-- 5 files changed, 22 insertions(+), 16 deletions(-) diff --git a/driver/configuration/provider.go b/driver/configuration/provider.go index b647f1e44a4c..65a59469049c 100644 --- a/driver/configuration/provider.go +++ b/driver/configuration/provider.go @@ -51,6 +51,7 @@ type Provider interface { AdminListenOn() string PublicListenOn() string DSN() string + DSNAddress() string SessionSecrets() [][]byte diff --git a/driver/configuration/provider_viper.go b/driver/configuration/provider_viper.go index 46cf089bb757..15a34ae31e35 100644 --- a/driver/configuration/provider_viper.go +++ b/driver/configuration/provider_viper.go @@ -153,6 +153,15 @@ func (p *ViperProvider) DSN() string { return "" } +func (p *ViperProvider) DSNAddress() string { + dsn := p.DSN() + if dsn == "memory" { + return "sqlite://:memory:?_fk=true" + } + + return dsn +} + func (p *ViperProvider) SelfServiceLoginBeforeHooks() []SelfServiceHook { return p.selfServiceHooks(ViperKeySelfServiceLoginBeforeConfig) } diff --git a/driver/registry.go b/driver/registry.go index e216c15d7d62..1776964ad961 100644 --- a/driver/registry.go +++ b/driver/registry.go @@ -1,6 +1,7 @@ package driver import ( + "context" "github.com/gorilla/sessions" "github.com/justinas/nosurf" "github.com/pkg/errors" @@ -107,13 +108,7 @@ type selfServiceStrategy interface { } func NewRegistry(c configuration.Provider) (Registry, error) { - dsn := c.DSN() - dsnAddress := dsn - if dsn == "memory" { - dsnAddress = "sqlite://:memory:?_fk=true" - } - - driver, err := dbal.GetDriverFor(dsnAddress) + driver, err := dbal.GetDriverFor(c.DSNAddress()) if err != nil { return nil, errors.WithStack(err) } @@ -123,5 +118,13 @@ func NewRegistry(c configuration.Provider) (Registry, error) { return nil, errors.Errorf("driver of type %T does not implement interface Registry", driver) } + // if dsn is memory we have to run the migrations on every start + if c.DSN() == "memory" { + registry.Logger().Print("Kratos is running migrations on every startup as DSN is memory.\n") + registry.Logger().Print("This means your data are lost when Kratos terminates.\n") + if err := registry.Persister().MigrateUp(context.Background()); err != nil { + return nil, err + } + } return registry, nil } diff --git a/driver/registry_default.go b/driver/registry_default.go index 019e23adab27..67be33de40ef 100644 --- a/driver/registry_default.go +++ b/driver/registry_default.go @@ -335,13 +335,6 @@ func (m *RegistryDefault) Init() error { bc.Reset() return errors.WithStack( backoff.Retry(func() error { - dsnAddress := m.c.DSN() - // if dsn is memory we have to run the migrations on every start - if dsnAddress == "memory" { - if err := registry.Persister().MigrateUp(context.Background()); err != nil { - return nil, errors.WithStack(err) - } - } pool, idlePool, connMaxLifetime := sqlcon.ParseConnectionOptions(m.l, m.c.DSN()) c, err := pop.NewConnection(&pop.ConnectionDetails{ URL: m.c.DSN(), diff --git a/quickstart.yml b/quickstart.yml index 40dccce951d8..c81226929333 100644 --- a/quickstart.yml +++ b/quickstart.yml @@ -9,7 +9,7 @@ services: kratos-migrate: image: oryd/kratos:latest-sqlite environment: - - DSN=sqlite://:memory:?_fk=true + - DSN=sqlite:///home/ory/sqlite/db.sqlite?_fk=true volumes: - type: bind source: ./contrib/quickstart/kratos/email-password/sqlite @@ -67,7 +67,7 @@ services: - "4434:4434" # admin restart: unless-stopped environment: - - DSN=sqlite://:memory:?_fk=true + - DSN=sqlite:///home/ory/sqlite/db.sqlite?_fk=true command: serve -c /etc/config/kratos/.kratos.yml --dev volumes: From 892c3107c4cea89f64c89c465ece6a665e594a94 Mon Sep 17 00:00:00 2001 From: zepatrik <11patti1@gmx.de> Date: Fri, 13 Mar 2020 12:56:13 +0100 Subject: [PATCH 4/8] format --- driver/registry.go | 1 + selfservice/errorx/persistence.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/driver/registry.go b/driver/registry.go index 1776964ad961..831530a8c21c 100644 --- a/driver/registry.go +++ b/driver/registry.go @@ -2,6 +2,7 @@ package driver import ( "context" + "github.com/gorilla/sessions" "github.com/justinas/nosurf" "github.com/pkg/errors" diff --git a/selfservice/errorx/persistence.go b/selfservice/errorx/persistence.go index c14c336b5fa2..0d363d185413 100644 --- a/selfservice/errorx/persistence.go +++ b/selfservice/errorx/persistence.go @@ -55,7 +55,7 @@ func TestPersister(p Persister) func(t *testing.T) { actual, err := p.Read(context.Background(), actualID) require.NoError(t, err) - assert.JSONEq(t, `{"code":404,"status":"Not Found","reason":"foobar","message":"The requested resource could not be found"}`, gjson.Get(toJSON(t, actual),"errors.0").String(), toJSON(t, actual)) + assert.JSONEq(t, `{"code":404,"status":"Not Found","reason":"foobar","message":"The requested resource could not be found"}`, gjson.Get(toJSON(t, actual), "errors.0").String(), toJSON(t, actual)) }) t.Run("case=clear", func(t *testing.T) { From b7e230639ea9d740db0e6dfb58fd93478562f967 Mon Sep 17 00:00:00 2001 From: zepatrik <11patti1@gmx.de> Date: Fri, 13 Mar 2020 13:51:10 +0100 Subject: [PATCH 5/8] improvements --- driver/configuration/provider.go | 1 - driver/configuration/provider_viper.go | 17 +++++++---------- driver/registry.go | 12 +++++++++--- 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/driver/configuration/provider.go b/driver/configuration/provider.go index 65a59469049c..b647f1e44a4c 100644 --- a/driver/configuration/provider.go +++ b/driver/configuration/provider.go @@ -51,7 +51,6 @@ type Provider interface { AdminListenOn() string PublicListenOn() string DSN() string - DSNAddress() string SessionSecrets() [][]byte diff --git a/driver/configuration/provider_viper.go b/driver/configuration/provider_viper.go index 15a34ae31e35..b74fceef51e2 100644 --- a/driver/configuration/provider_viper.go +++ b/driver/configuration/provider_viper.go @@ -145,7 +145,13 @@ func (p *ViperProvider) PublicListenOn() string { } func (p *ViperProvider) DSN() string { - if dsn := viperx.GetString(p.l, ViperKeyDSN, ""); len(dsn) > 0 { + dsn := viperx.GetString(p.l, ViperKeyDSN, "") + + if dsn == "memory" { + return "sqlite://mem.db?mode=memory?_fk=true&cache=shared" + } + + if len(dsn) > 0 { return dsn } @@ -153,15 +159,6 @@ func (p *ViperProvider) DSN() string { return "" } -func (p *ViperProvider) DSNAddress() string { - dsn := p.DSN() - if dsn == "memory" { - return "sqlite://:memory:?_fk=true" - } - - return dsn -} - func (p *ViperProvider) SelfServiceLoginBeforeHooks() []SelfServiceHook { return p.selfServiceHooks(ViperKeySelfServiceLoginBeforeConfig) } diff --git a/driver/registry.go b/driver/registry.go index 831530a8c21c..f25311598bca 100644 --- a/driver/registry.go +++ b/driver/registry.go @@ -2,6 +2,7 @@ package driver import ( "context" + "net/url" "github.com/gorilla/sessions" "github.com/justinas/nosurf" @@ -109,7 +110,12 @@ type selfServiceStrategy interface { } func NewRegistry(c configuration.Provider) (Registry, error) { - driver, err := dbal.GetDriverFor(c.DSNAddress()) + dsn, err := url.Parse(c.DSN()) + if err != nil { + return nil, errors.WithStack(err) + } + + driver, err := dbal.GetDriverFor(dsn.String()) if err != nil { return nil, errors.WithStack(err) } @@ -120,9 +126,9 @@ func NewRegistry(c configuration.Provider) (Registry, error) { } // if dsn is memory we have to run the migrations on every start - if c.DSN() == "memory" { + if dsn.Scheme == "sqlite" && dsn.Query().Get("mode") == "memory" { registry.Logger().Print("Kratos is running migrations on every startup as DSN is memory.\n") - registry.Logger().Print("This means your data are lost when Kratos terminates.\n") + registry.Logger().Print("This means your data is lost when Kratos terminates.\n") if err := registry.Persister().MigrateUp(context.Background()); err != nil { return nil, err } From ad2b5c462bd68d25b5543581fd06bb30fbf44b68 Mon Sep 17 00:00:00 2001 From: zepatrik <11patti1@gmx.de> Date: Mon, 16 Mar 2020 14:18:20 +0100 Subject: [PATCH 6/8] u --- driver/configuration/provider_viper.go | 2 +- driver/configuration/provider_viper_test.go | 54 +++++++++++++++++++++ driver/registry.go | 25 +++++----- 3 files changed, 69 insertions(+), 12 deletions(-) diff --git a/driver/configuration/provider_viper.go b/driver/configuration/provider_viper.go index b74fceef51e2..3bcda8cf2bb5 100644 --- a/driver/configuration/provider_viper.go +++ b/driver/configuration/provider_viper.go @@ -148,7 +148,7 @@ func (p *ViperProvider) DSN() string { dsn := viperx.GetString(p.l, ViperKeyDSN, "") if dsn == "memory" { - return "sqlite://mem.db?mode=memory?_fk=true&cache=shared" + return "sqlite://mem.db?mode=memory&_fk=true&cache=shared" } if len(dsn) > 0 { diff --git a/driver/configuration/provider_viper_test.go b/driver/configuration/provider_viper_test.go index e66cd39c976d..ff75be22cf6b 100644 --- a/driver/configuration/provider_viper_test.go +++ b/driver/configuration/provider_viper_test.go @@ -181,3 +181,57 @@ func TestViperProvider(t *testing.T) { }) }) } + +type InterceptHook struct { + lastEntry *logrus.Entry +} + +func (l InterceptHook) Levels() []logrus.Level { + return []logrus.Level{logrus.FatalLevel} +} + +func (l InterceptHook) Fire(e *logrus.Entry) error { + l.lastEntry = e + return nil +} + +func TestViperProvider_DSN(t *testing.T) { + t.Run("case=dsn: memory", func(t *testing.T) { + viper.Reset() + viper.Set(configuration.ViperKeyDSN, "memory") + + l := logrus.New() + p := configuration.NewViperProvider(l, false) + + assert.Equal(t, "sqlite://mem.db?mode=memory&_fk=true&cache=shared", p.DSN()) + }) + + t.Run("case=dsn: not memory", func(t *testing.T) { + dsn := "sqlite://foo.db?_fk=true" + viper.Reset() + viper.Set(configuration.ViperKeyDSN, dsn) + + l := logrus.New() + p := configuration.NewViperProvider(l, false) + + assert.Equal(t, dsn, p.DSN()) + }) + + t.Run("case=dsn: not set", func(t *testing.T) { + dsn := "" + viper.Reset() + viper.Set(configuration.ViperKeyDSN, dsn) + + l := logrus.New() + p := configuration.NewViperProvider(l, false) + + var exitCode int + l.ExitFunc = func(i int) { + exitCode = i + } + h := InterceptHook{} + l.AddHook(h) + assert.Equal(t, dsn, p.DSN()) + assert.NotEqual(t, 0, exitCode) + }) +} diff --git a/driver/registry.go b/driver/registry.go index f25311598bca..4a3634f3e343 100644 --- a/driver/registry.go +++ b/driver/registry.go @@ -3,6 +3,7 @@ package driver import ( "context" "net/url" + "strings" "github.com/gorilla/sessions" "github.com/justinas/nosurf" @@ -110,12 +111,8 @@ type selfServiceStrategy interface { } func NewRegistry(c configuration.Provider) (Registry, error) { - dsn, err := url.Parse(c.DSN()) - if err != nil { - return nil, errors.WithStack(err) - } - - driver, err := dbal.GetDriverFor(dsn.String()) + dsn := c.DSN() + driver, err := dbal.GetDriverFor(dsn) if err != nil { return nil, errors.WithStack(err) } @@ -126,11 +123,17 @@ func NewRegistry(c configuration.Provider) (Registry, error) { } // if dsn is memory we have to run the migrations on every start - if dsn.Scheme == "sqlite" && dsn.Query().Get("mode") == "memory" { - registry.Logger().Print("Kratos is running migrations on every startup as DSN is memory.\n") - registry.Logger().Print("This means your data is lost when Kratos terminates.\n") - if err := registry.Persister().MigrateUp(context.Background()); err != nil { - return nil, err + if urlParts := strings.SplitN(dsn, "?", 1); len(urlParts) == 2 && strings.HasPrefix(dsn, "sqlite://") { + queryVals, err := url.ParseQuery(urlParts[1]) + if err != nil { + return nil, errors.WithMessage(errors.WithStack(err), "unable to parse the DSN url") + } + if queryVals.Get("mode") == "memory" { + registry.Logger().Print("Kratos is running migrations on every startup as DSN is memory.\n") + registry.Logger().Print("This means your data is lost when Kratos terminates.\n") + if err := registry.Persister().MigrateUp(context.Background()); err != nil { + return nil, err + } } } return registry, nil From 3f0a80799c250399dd2e6dfc02e436b3d5aba9cf Mon Sep 17 00:00:00 2001 From: aeneasr Date: Mon, 16 Mar 2020 13:26:49 +0000 Subject: [PATCH 7/8] chore: Regenerate swagger spec and internal client --- internal/httpclient/client/admin/create_identity_parameters.go | 3 +-- internal/httpclient/client/admin/create_identity_responses.go | 3 +-- internal/httpclient/client/admin/delete_identity_parameters.go | 3 +-- internal/httpclient/client/admin/delete_identity_responses.go | 3 +-- internal/httpclient/client/admin/get_identity_parameters.go | 3 +-- internal/httpclient/client/admin/get_identity_responses.go | 3 +-- internal/httpclient/client/admin/list_identities_parameters.go | 3 +-- internal/httpclient/client/admin/list_identities_responses.go | 3 +-- internal/httpclient/client/admin/update_identity_parameters.go | 3 +-- internal/httpclient/client/admin/update_identity_responses.go | 3 +-- .../get_self_service_browser_login_request_parameters.go | 3 +-- .../common/get_self_service_browser_login_request_responses.go | 3 +-- ...lf_service_browser_profile_management_request_parameters.go | 3 +-- ...elf_service_browser_profile_management_request_responses.go | 3 +-- ...get_self_service_browser_registration_request_parameters.go | 3 +-- .../get_self_service_browser_registration_request_responses.go | 3 +-- .../client/common/get_self_service_error_parameters.go | 3 +-- .../client/common/get_self_service_error_responses.go | 3 +-- .../common/get_self_service_verification_request_parameters.go | 3 +-- .../common/get_self_service_verification_request_responses.go | 3 +-- .../httpclient/client/health/is_instance_alive_parameters.go | 3 +-- .../httpclient/client/health/is_instance_alive_responses.go | 3 +-- .../httpclient/client/health/is_instance_ready_parameters.go | 3 +-- .../httpclient/client/health/is_instance_ready_responses.go | 3 +-- internal/httpclient/client/ory_kratos_client.go | 3 +-- ..._self_service_browser_profile_management_flow_parameters.go | 3 +-- ...e_self_service_browser_profile_management_flow_responses.go | 3 +-- ...mplete_self_service_browser_verification_flow_parameters.go | 3 +-- ...omplete_self_service_browser_verification_flow_responses.go | 3 +-- .../initialize_self_service_browser_login_flow_parameters.go | 3 +-- .../initialize_self_service_browser_login_flow_responses.go | 3 +-- .../initialize_self_service_browser_logout_flow_parameters.go | 3 +-- .../initialize_self_service_browser_logout_flow_responses.go | 3 +-- ...ialize_self_service_browser_registration_flow_parameters.go | 3 +-- ...tialize_self_service_browser_registration_flow_responses.go | 3 +-- ...ialize_self_service_browser_verification_flow_parameters.go | 3 +-- ...tialize_self_service_browser_verification_flow_responses.go | 3 +-- ...itialize_self_service_profile_management_flow_parameters.go | 3 +-- ...nitialize_self_service_profile_management_flow_responses.go | 3 +-- .../client/public/self_service_browser_verify_parameters.go | 3 +-- .../client/public/self_service_browser_verify_responses.go | 3 +-- internal/httpclient/client/public/whoami_parameters.go | 3 +-- internal/httpclient/client/public/whoami_responses.go | 3 +-- internal/httpclient/client/version/get_version_parameters.go | 3 +-- internal/httpclient/client/version/get_version_responses.go | 3 +-- ...ete_self_service_browser_profile_management_flow_payload.go | 3 ++- internal/httpclient/models/credentials_type.go | 3 ++- internal/httpclient/models/error.go | 3 ++- internal/httpclient/models/error_container.go | 3 ++- internal/httpclient/models/form.go | 3 ++- internal/httpclient/models/form_field.go | 3 ++- internal/httpclient/models/form_fields.go | 3 ++- internal/httpclient/models/generic_error.go | 3 ++- internal/httpclient/models/generic_error_payload.go | 3 ++- internal/httpclient/models/health_not_ready_status.go | 3 ++- internal/httpclient/models/health_status.go | 3 ++- internal/httpclient/models/identity.go | 3 ++- internal/httpclient/models/login_request.go | 3 ++- internal/httpclient/models/login_request_method.go | 3 ++- internal/httpclient/models/login_request_method_config.go | 3 ++- internal/httpclient/models/profile_management_request.go | 3 ++- internal/httpclient/models/registration_request.go | 3 ++- internal/httpclient/models/registration_request_method.go | 3 ++- .../httpclient/models/registration_request_method_config.go | 3 ++- internal/httpclient/models/session.go | 3 ++- internal/httpclient/models/traits.go | 1 + internal/httpclient/models/uuid.go | 3 ++- internal/httpclient/models/verifiable_address.go | 3 ++- internal/httpclient/models/verifiable_address_type.go | 3 ++- internal/httpclient/models/verification_request.go | 3 ++- internal/httpclient/models/version.go | 3 ++- 71 files changed, 96 insertions(+), 115 deletions(-) diff --git a/internal/httpclient/client/admin/create_identity_parameters.go b/internal/httpclient/client/admin/create_identity_parameters.go index 535dd83d420f..518e607d5f39 100644 --- a/internal/httpclient/client/admin/create_identity_parameters.go +++ b/internal/httpclient/client/admin/create_identity_parameters.go @@ -13,8 +13,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/client/admin/create_identity_responses.go b/internal/httpclient/client/admin/create_identity_responses.go index 9f1cd368363d..eda142c56202 100644 --- a/internal/httpclient/client/admin/create_identity_responses.go +++ b/internal/httpclient/client/admin/create_identity_responses.go @@ -10,8 +10,7 @@ import ( "io" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/client/admin/delete_identity_parameters.go b/internal/httpclient/client/admin/delete_identity_parameters.go index 77e6c1f84f25..0c5d40832174 100644 --- a/internal/httpclient/client/admin/delete_identity_parameters.go +++ b/internal/httpclient/client/admin/delete_identity_parameters.go @@ -13,8 +13,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewDeleteIdentityParams creates a new DeleteIdentityParams object diff --git a/internal/httpclient/client/admin/delete_identity_responses.go b/internal/httpclient/client/admin/delete_identity_responses.go index bb286ae9f204..5b1140d26aef 100644 --- a/internal/httpclient/client/admin/delete_identity_responses.go +++ b/internal/httpclient/client/admin/delete_identity_responses.go @@ -10,8 +10,7 @@ import ( "io" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/client/admin/get_identity_parameters.go b/internal/httpclient/client/admin/get_identity_parameters.go index 060833223b1e..b1a377d82aef 100644 --- a/internal/httpclient/client/admin/get_identity_parameters.go +++ b/internal/httpclient/client/admin/get_identity_parameters.go @@ -13,8 +13,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewGetIdentityParams creates a new GetIdentityParams object diff --git a/internal/httpclient/client/admin/get_identity_responses.go b/internal/httpclient/client/admin/get_identity_responses.go index f416cc5eac8a..421eed9cc33b 100644 --- a/internal/httpclient/client/admin/get_identity_responses.go +++ b/internal/httpclient/client/admin/get_identity_responses.go @@ -10,8 +10,7 @@ import ( "io" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/client/admin/list_identities_parameters.go b/internal/httpclient/client/admin/list_identities_parameters.go index 69d3f8622bfe..b88e99230734 100644 --- a/internal/httpclient/client/admin/list_identities_parameters.go +++ b/internal/httpclient/client/admin/list_identities_parameters.go @@ -13,8 +13,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewListIdentitiesParams creates a new ListIdentitiesParams object diff --git a/internal/httpclient/client/admin/list_identities_responses.go b/internal/httpclient/client/admin/list_identities_responses.go index 27d644eb4ac5..5e9a16f34843 100644 --- a/internal/httpclient/client/admin/list_identities_responses.go +++ b/internal/httpclient/client/admin/list_identities_responses.go @@ -10,8 +10,7 @@ import ( "io" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/client/admin/update_identity_parameters.go b/internal/httpclient/client/admin/update_identity_parameters.go index 5797e6f05b5d..7dfd612b8a75 100644 --- a/internal/httpclient/client/admin/update_identity_parameters.go +++ b/internal/httpclient/client/admin/update_identity_parameters.go @@ -13,8 +13,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/client/admin/update_identity_responses.go b/internal/httpclient/client/admin/update_identity_responses.go index ece232885560..a27a0c8e10ee 100644 --- a/internal/httpclient/client/admin/update_identity_responses.go +++ b/internal/httpclient/client/admin/update_identity_responses.go @@ -10,8 +10,7 @@ import ( "io" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/client/common/get_self_service_browser_login_request_parameters.go b/internal/httpclient/client/common/get_self_service_browser_login_request_parameters.go index 34509bbaca3d..f859332108eb 100644 --- a/internal/httpclient/client/common/get_self_service_browser_login_request_parameters.go +++ b/internal/httpclient/client/common/get_self_service_browser_login_request_parameters.go @@ -13,8 +13,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewGetSelfServiceBrowserLoginRequestParams creates a new GetSelfServiceBrowserLoginRequestParams object diff --git a/internal/httpclient/client/common/get_self_service_browser_login_request_responses.go b/internal/httpclient/client/common/get_self_service_browser_login_request_responses.go index b4f2f56fea6d..83f841cc63d3 100644 --- a/internal/httpclient/client/common/get_self_service_browser_login_request_responses.go +++ b/internal/httpclient/client/common/get_self_service_browser_login_request_responses.go @@ -10,8 +10,7 @@ import ( "io" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/client/common/get_self_service_browser_profile_management_request_parameters.go b/internal/httpclient/client/common/get_self_service_browser_profile_management_request_parameters.go index 662ef82a6eab..bd2c66b42ab8 100644 --- a/internal/httpclient/client/common/get_self_service_browser_profile_management_request_parameters.go +++ b/internal/httpclient/client/common/get_self_service_browser_profile_management_request_parameters.go @@ -13,8 +13,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewGetSelfServiceBrowserProfileManagementRequestParams creates a new GetSelfServiceBrowserProfileManagementRequestParams object diff --git a/internal/httpclient/client/common/get_self_service_browser_profile_management_request_responses.go b/internal/httpclient/client/common/get_self_service_browser_profile_management_request_responses.go index a964066112c6..eb9ec7d7255a 100644 --- a/internal/httpclient/client/common/get_self_service_browser_profile_management_request_responses.go +++ b/internal/httpclient/client/common/get_self_service_browser_profile_management_request_responses.go @@ -10,8 +10,7 @@ import ( "io" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/client/common/get_self_service_browser_registration_request_parameters.go b/internal/httpclient/client/common/get_self_service_browser_registration_request_parameters.go index 821288865362..6af504255231 100644 --- a/internal/httpclient/client/common/get_self_service_browser_registration_request_parameters.go +++ b/internal/httpclient/client/common/get_self_service_browser_registration_request_parameters.go @@ -13,8 +13,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewGetSelfServiceBrowserRegistrationRequestParams creates a new GetSelfServiceBrowserRegistrationRequestParams object diff --git a/internal/httpclient/client/common/get_self_service_browser_registration_request_responses.go b/internal/httpclient/client/common/get_self_service_browser_registration_request_responses.go index c6447c1b6e5a..c2a5bd20a577 100644 --- a/internal/httpclient/client/common/get_self_service_browser_registration_request_responses.go +++ b/internal/httpclient/client/common/get_self_service_browser_registration_request_responses.go @@ -10,8 +10,7 @@ import ( "io" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/client/common/get_self_service_error_parameters.go b/internal/httpclient/client/common/get_self_service_error_parameters.go index 2fbb000df259..8854685a2963 100644 --- a/internal/httpclient/client/common/get_self_service_error_parameters.go +++ b/internal/httpclient/client/common/get_self_service_error_parameters.go @@ -13,8 +13,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewGetSelfServiceErrorParams creates a new GetSelfServiceErrorParams object diff --git a/internal/httpclient/client/common/get_self_service_error_responses.go b/internal/httpclient/client/common/get_self_service_error_responses.go index ed41a6de4470..101855f2f99b 100644 --- a/internal/httpclient/client/common/get_self_service_error_responses.go +++ b/internal/httpclient/client/common/get_self_service_error_responses.go @@ -10,8 +10,7 @@ import ( "io" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/client/common/get_self_service_verification_request_parameters.go b/internal/httpclient/client/common/get_self_service_verification_request_parameters.go index 79688820ba59..f2d4a7e79d35 100644 --- a/internal/httpclient/client/common/get_self_service_verification_request_parameters.go +++ b/internal/httpclient/client/common/get_self_service_verification_request_parameters.go @@ -13,8 +13,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewGetSelfServiceVerificationRequestParams creates a new GetSelfServiceVerificationRequestParams object diff --git a/internal/httpclient/client/common/get_self_service_verification_request_responses.go b/internal/httpclient/client/common/get_self_service_verification_request_responses.go index 988c1c548a7a..629e2177c130 100644 --- a/internal/httpclient/client/common/get_self_service_verification_request_responses.go +++ b/internal/httpclient/client/common/get_self_service_verification_request_responses.go @@ -10,8 +10,7 @@ import ( "io" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/client/health/is_instance_alive_parameters.go b/internal/httpclient/client/health/is_instance_alive_parameters.go index 359c3d7334c5..7f882b77ed31 100644 --- a/internal/httpclient/client/health/is_instance_alive_parameters.go +++ b/internal/httpclient/client/health/is_instance_alive_parameters.go @@ -13,8 +13,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewIsInstanceAliveParams creates a new IsInstanceAliveParams object diff --git a/internal/httpclient/client/health/is_instance_alive_responses.go b/internal/httpclient/client/health/is_instance_alive_responses.go index a20e9da35f70..e2a749c5fd6b 100644 --- a/internal/httpclient/client/health/is_instance_alive_responses.go +++ b/internal/httpclient/client/health/is_instance_alive_responses.go @@ -10,8 +10,7 @@ import ( "io" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/client/health/is_instance_ready_parameters.go b/internal/httpclient/client/health/is_instance_ready_parameters.go index 247b03483d88..f03a934a8619 100644 --- a/internal/httpclient/client/health/is_instance_ready_parameters.go +++ b/internal/httpclient/client/health/is_instance_ready_parameters.go @@ -13,8 +13,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewIsInstanceReadyParams creates a new IsInstanceReadyParams object diff --git a/internal/httpclient/client/health/is_instance_ready_responses.go b/internal/httpclient/client/health/is_instance_ready_responses.go index 3b3d8c69cfae..d64fb185adef 100644 --- a/internal/httpclient/client/health/is_instance_ready_responses.go +++ b/internal/httpclient/client/health/is_instance_ready_responses.go @@ -10,8 +10,7 @@ import ( "io" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/client/ory_kratos_client.go b/internal/httpclient/client/ory_kratos_client.go index 8bbc309ceac0..e83baae4618f 100644 --- a/internal/httpclient/client/ory_kratos_client.go +++ b/internal/httpclient/client/ory_kratos_client.go @@ -6,9 +6,8 @@ package client // Editing this file might prove futile when you re-run the swagger generate command import ( - httptransport "github.com/go-openapi/runtime/client" - "github.com/go-openapi/runtime" + httptransport "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/client/admin" diff --git a/internal/httpclient/client/public/complete_self_service_browser_profile_management_flow_parameters.go b/internal/httpclient/client/public/complete_self_service_browser_profile_management_flow_parameters.go index 9ddcbcc0124a..cf33e4c97208 100644 --- a/internal/httpclient/client/public/complete_self_service_browser_profile_management_flow_parameters.go +++ b/internal/httpclient/client/public/complete_self_service_browser_profile_management_flow_parameters.go @@ -13,8 +13,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/client/public/complete_self_service_browser_profile_management_flow_responses.go b/internal/httpclient/client/public/complete_self_service_browser_profile_management_flow_responses.go index 0965f05942b0..e61ffe74fbb5 100644 --- a/internal/httpclient/client/public/complete_self_service_browser_profile_management_flow_responses.go +++ b/internal/httpclient/client/public/complete_self_service_browser_profile_management_flow_responses.go @@ -10,8 +10,7 @@ import ( "io" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/client/public/complete_self_service_browser_verification_flow_parameters.go b/internal/httpclient/client/public/complete_self_service_browser_verification_flow_parameters.go index c0783b3d6318..92918cff12d4 100644 --- a/internal/httpclient/client/public/complete_self_service_browser_verification_flow_parameters.go +++ b/internal/httpclient/client/public/complete_self_service_browser_verification_flow_parameters.go @@ -13,8 +13,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewCompleteSelfServiceBrowserVerificationFlowParams creates a new CompleteSelfServiceBrowserVerificationFlowParams object diff --git a/internal/httpclient/client/public/complete_self_service_browser_verification_flow_responses.go b/internal/httpclient/client/public/complete_self_service_browser_verification_flow_responses.go index c9e48fe53fdd..ea3d53ff79f3 100644 --- a/internal/httpclient/client/public/complete_self_service_browser_verification_flow_responses.go +++ b/internal/httpclient/client/public/complete_self_service_browser_verification_flow_responses.go @@ -10,8 +10,7 @@ import ( "io" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/client/public/initialize_self_service_browser_login_flow_parameters.go b/internal/httpclient/client/public/initialize_self_service_browser_login_flow_parameters.go index 531543e0a403..f7c5eb9ab114 100644 --- a/internal/httpclient/client/public/initialize_self_service_browser_login_flow_parameters.go +++ b/internal/httpclient/client/public/initialize_self_service_browser_login_flow_parameters.go @@ -13,8 +13,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewInitializeSelfServiceBrowserLoginFlowParams creates a new InitializeSelfServiceBrowserLoginFlowParams object diff --git a/internal/httpclient/client/public/initialize_self_service_browser_login_flow_responses.go b/internal/httpclient/client/public/initialize_self_service_browser_login_flow_responses.go index 665b49a63589..071d74715124 100644 --- a/internal/httpclient/client/public/initialize_self_service_browser_login_flow_responses.go +++ b/internal/httpclient/client/public/initialize_self_service_browser_login_flow_responses.go @@ -10,8 +10,7 @@ import ( "io" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/client/public/initialize_self_service_browser_logout_flow_parameters.go b/internal/httpclient/client/public/initialize_self_service_browser_logout_flow_parameters.go index 97476353c3ea..fb53aaafaead 100644 --- a/internal/httpclient/client/public/initialize_self_service_browser_logout_flow_parameters.go +++ b/internal/httpclient/client/public/initialize_self_service_browser_logout_flow_parameters.go @@ -13,8 +13,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewInitializeSelfServiceBrowserLogoutFlowParams creates a new InitializeSelfServiceBrowserLogoutFlowParams object diff --git a/internal/httpclient/client/public/initialize_self_service_browser_logout_flow_responses.go b/internal/httpclient/client/public/initialize_self_service_browser_logout_flow_responses.go index 8c46c2fb8291..30e222afa883 100644 --- a/internal/httpclient/client/public/initialize_self_service_browser_logout_flow_responses.go +++ b/internal/httpclient/client/public/initialize_self_service_browser_logout_flow_responses.go @@ -10,8 +10,7 @@ import ( "io" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/client/public/initialize_self_service_browser_registration_flow_parameters.go b/internal/httpclient/client/public/initialize_self_service_browser_registration_flow_parameters.go index 698328ed2a82..8e11dc9018d9 100644 --- a/internal/httpclient/client/public/initialize_self_service_browser_registration_flow_parameters.go +++ b/internal/httpclient/client/public/initialize_self_service_browser_registration_flow_parameters.go @@ -13,8 +13,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewInitializeSelfServiceBrowserRegistrationFlowParams creates a new InitializeSelfServiceBrowserRegistrationFlowParams object diff --git a/internal/httpclient/client/public/initialize_self_service_browser_registration_flow_responses.go b/internal/httpclient/client/public/initialize_self_service_browser_registration_flow_responses.go index 5d76505b50c4..e3328029e7a1 100644 --- a/internal/httpclient/client/public/initialize_self_service_browser_registration_flow_responses.go +++ b/internal/httpclient/client/public/initialize_self_service_browser_registration_flow_responses.go @@ -10,8 +10,7 @@ import ( "io" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/client/public/initialize_self_service_browser_verification_flow_parameters.go b/internal/httpclient/client/public/initialize_self_service_browser_verification_flow_parameters.go index 395209ef8e42..ebc11fb98f11 100644 --- a/internal/httpclient/client/public/initialize_self_service_browser_verification_flow_parameters.go +++ b/internal/httpclient/client/public/initialize_self_service_browser_verification_flow_parameters.go @@ -13,8 +13,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewInitializeSelfServiceBrowserVerificationFlowParams creates a new InitializeSelfServiceBrowserVerificationFlowParams object diff --git a/internal/httpclient/client/public/initialize_self_service_browser_verification_flow_responses.go b/internal/httpclient/client/public/initialize_self_service_browser_verification_flow_responses.go index d881d5a15fc3..78bf0eb6d379 100644 --- a/internal/httpclient/client/public/initialize_self_service_browser_verification_flow_responses.go +++ b/internal/httpclient/client/public/initialize_self_service_browser_verification_flow_responses.go @@ -10,8 +10,7 @@ import ( "io" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/client/public/initialize_self_service_profile_management_flow_parameters.go b/internal/httpclient/client/public/initialize_self_service_profile_management_flow_parameters.go index 39032cff1d48..af829c32c851 100644 --- a/internal/httpclient/client/public/initialize_self_service_profile_management_flow_parameters.go +++ b/internal/httpclient/client/public/initialize_self_service_profile_management_flow_parameters.go @@ -13,8 +13,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewInitializeSelfServiceProfileManagementFlowParams creates a new InitializeSelfServiceProfileManagementFlowParams object diff --git a/internal/httpclient/client/public/initialize_self_service_profile_management_flow_responses.go b/internal/httpclient/client/public/initialize_self_service_profile_management_flow_responses.go index fcb63f6164e2..36445a07da07 100644 --- a/internal/httpclient/client/public/initialize_self_service_profile_management_flow_responses.go +++ b/internal/httpclient/client/public/initialize_self_service_profile_management_flow_responses.go @@ -10,8 +10,7 @@ import ( "io" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/client/public/self_service_browser_verify_parameters.go b/internal/httpclient/client/public/self_service_browser_verify_parameters.go index 751741d7ccf4..f62a2a4ecb89 100644 --- a/internal/httpclient/client/public/self_service_browser_verify_parameters.go +++ b/internal/httpclient/client/public/self_service_browser_verify_parameters.go @@ -13,8 +13,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewSelfServiceBrowserVerifyParams creates a new SelfServiceBrowserVerifyParams object diff --git a/internal/httpclient/client/public/self_service_browser_verify_responses.go b/internal/httpclient/client/public/self_service_browser_verify_responses.go index 3b14ee9e2454..980071a46eb9 100644 --- a/internal/httpclient/client/public/self_service_browser_verify_responses.go +++ b/internal/httpclient/client/public/self_service_browser_verify_responses.go @@ -10,8 +10,7 @@ import ( "io" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/client/public/whoami_parameters.go b/internal/httpclient/client/public/whoami_parameters.go index 69861624d632..c3a182c714bb 100644 --- a/internal/httpclient/client/public/whoami_parameters.go +++ b/internal/httpclient/client/public/whoami_parameters.go @@ -13,8 +13,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewWhoamiParams creates a new WhoamiParams object diff --git a/internal/httpclient/client/public/whoami_responses.go b/internal/httpclient/client/public/whoami_responses.go index 4d9179ab127e..17df465a26bb 100644 --- a/internal/httpclient/client/public/whoami_responses.go +++ b/internal/httpclient/client/public/whoami_responses.go @@ -10,8 +10,7 @@ import ( "io" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/client/version/get_version_parameters.go b/internal/httpclient/client/version/get_version_parameters.go index f937b57ccc91..29bf00d13b82 100644 --- a/internal/httpclient/client/version/get_version_parameters.go +++ b/internal/httpclient/client/version/get_version_parameters.go @@ -13,8 +13,7 @@ import ( "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // NewGetVersionParams creates a new GetVersionParams object diff --git a/internal/httpclient/client/version/get_version_responses.go b/internal/httpclient/client/version/get_version_responses.go index 60491e6c4fa2..cc0995099222 100644 --- a/internal/httpclient/client/version/get_version_responses.go +++ b/internal/httpclient/client/version/get_version_responses.go @@ -10,8 +10,7 @@ import ( "io" "github.com/go-openapi/runtime" - - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/ory/kratos/internal/httpclient/models" ) diff --git a/internal/httpclient/models/complete_self_service_browser_profile_management_flow_payload.go b/internal/httpclient/models/complete_self_service_browser_profile_management_flow_payload.go index 8fd079a75fa2..6c4a708766cc 100644 --- a/internal/httpclient/models/complete_self_service_browser_profile_management_flow_payload.go +++ b/internal/httpclient/models/complete_self_service_browser_profile_management_flow_payload.go @@ -7,12 +7,13 @@ package models import ( "github.com/go-openapi/errors" - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // CompleteSelfServiceBrowserProfileManagementFlowPayload complete self service browser profile management flow payload +// // swagger:model completeSelfServiceBrowserProfileManagementFlowPayload type CompleteSelfServiceBrowserProfileManagementFlowPayload struct { diff --git a/internal/httpclient/models/credentials_type.go b/internal/httpclient/models/credentials_type.go index 0d3419209bc9..81188627891b 100644 --- a/internal/httpclient/models/credentials_type.go +++ b/internal/httpclient/models/credentials_type.go @@ -6,12 +6,13 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // CredentialsType CredentialsType represents several different credential types, like password credentials, passwordless credentials, // // and so on. +// // swagger:model CredentialsType type CredentialsType string diff --git a/internal/httpclient/models/error.go b/internal/httpclient/models/error.go index 75b27b4359b5..e27e3fb05264 100644 --- a/internal/httpclient/models/error.go +++ b/internal/httpclient/models/error.go @@ -6,11 +6,12 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // Error error +// // swagger:model Error type Error struct { diff --git a/internal/httpclient/models/error_container.go b/internal/httpclient/models/error_container.go index 8957af09e278..8978b5bb67f0 100644 --- a/internal/httpclient/models/error_container.go +++ b/internal/httpclient/models/error_container.go @@ -7,11 +7,12 @@ package models import ( "github.com/go-openapi/errors" - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // ErrorContainer error container +// // swagger:model errorContainer type ErrorContainer struct { diff --git a/internal/httpclient/models/form.go b/internal/httpclient/models/form.go index 9571d46bca5f..6e1aef784a3b 100644 --- a/internal/httpclient/models/form.go +++ b/internal/httpclient/models/form.go @@ -9,12 +9,13 @@ import ( "strconv" "github.com/go-openapi/errors" - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // Form HTMLForm represents a HTML Form. The container can work with both HTTP Form and JSON requests +// // swagger:model form type Form struct { diff --git a/internal/httpclient/models/form_field.go b/internal/httpclient/models/form_field.go index 5919020f10a2..68d61e8a073f 100644 --- a/internal/httpclient/models/form_field.go +++ b/internal/httpclient/models/form_field.go @@ -9,12 +9,13 @@ import ( "strconv" "github.com/go-openapi/errors" - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // FormField Field represents a HTML Form Field +// // swagger:model formField type FormField struct { diff --git a/internal/httpclient/models/form_fields.go b/internal/httpclient/models/form_fields.go index f3fb25eab4a9..9a28d1c13efc 100644 --- a/internal/httpclient/models/form_fields.go +++ b/internal/httpclient/models/form_fields.go @@ -9,11 +9,12 @@ import ( "strconv" "github.com/go-openapi/errors" - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // FormFields Fields contains multiple fields +// // swagger:model formFields type FormFields []*FormField diff --git a/internal/httpclient/models/generic_error.go b/internal/httpclient/models/generic_error.go index 1d3d8213a9cb..0582f957ae2e 100644 --- a/internal/httpclient/models/generic_error.go +++ b/internal/httpclient/models/generic_error.go @@ -7,13 +7,14 @@ package models import ( "github.com/go-openapi/errors" - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // GenericError Error response // // Error responses are sent when an error (e.g. unauthorized, bad request, ...) occurred. +// // swagger:model genericError type GenericError struct { diff --git a/internal/httpclient/models/generic_error_payload.go b/internal/httpclient/models/generic_error_payload.go index fb7f7a6acfac..dff6c9dc06b0 100644 --- a/internal/httpclient/models/generic_error_payload.go +++ b/internal/httpclient/models/generic_error_payload.go @@ -6,11 +6,12 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // GenericErrorPayload nolint:deadcode,unused +// // swagger:model genericErrorPayload type GenericErrorPayload struct { diff --git a/internal/httpclient/models/health_not_ready_status.go b/internal/httpclient/models/health_not_ready_status.go index d10e6d25c60b..64626783ed40 100644 --- a/internal/httpclient/models/health_not_ready_status.go +++ b/internal/httpclient/models/health_not_ready_status.go @@ -6,11 +6,12 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // HealthNotReadyStatus health not ready status +// // swagger:model healthNotReadyStatus type HealthNotReadyStatus struct { diff --git a/internal/httpclient/models/health_status.go b/internal/httpclient/models/health_status.go index 517e8500ffde..60ba32416b0d 100644 --- a/internal/httpclient/models/health_status.go +++ b/internal/httpclient/models/health_status.go @@ -6,11 +6,12 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // HealthStatus health status +// // swagger:model healthStatus type HealthStatus struct { diff --git a/internal/httpclient/models/identity.go b/internal/httpclient/models/identity.go index 59ffde65e2e0..fbc0a84aee73 100644 --- a/internal/httpclient/models/identity.go +++ b/internal/httpclient/models/identity.go @@ -9,12 +9,13 @@ import ( "strconv" "github.com/go-openapi/errors" - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // Identity identity +// // swagger:model Identity type Identity struct { diff --git a/internal/httpclient/models/login_request.go b/internal/httpclient/models/login_request.go index 6ac167cd2d8b..0e1c113787f8 100644 --- a/internal/httpclient/models/login_request.go +++ b/internal/httpclient/models/login_request.go @@ -7,12 +7,13 @@ package models import ( "github.com/go-openapi/errors" - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // LoginRequest login request +// // swagger:model loginRequest type LoginRequest struct { diff --git a/internal/httpclient/models/login_request_method.go b/internal/httpclient/models/login_request_method.go index 571408bc47dd..1fec0c40e46d 100644 --- a/internal/httpclient/models/login_request_method.go +++ b/internal/httpclient/models/login_request_method.go @@ -7,12 +7,13 @@ package models import ( "github.com/go-openapi/errors" - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // LoginRequestMethod login request method +// // swagger:model loginRequestMethod type LoginRequestMethod struct { diff --git a/internal/httpclient/models/login_request_method_config.go b/internal/httpclient/models/login_request_method_config.go index 82c2f5207884..1d24fc43eb1e 100644 --- a/internal/httpclient/models/login_request_method_config.go +++ b/internal/httpclient/models/login_request_method_config.go @@ -9,12 +9,13 @@ import ( "strconv" "github.com/go-openapi/errors" - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // LoginRequestMethodConfig login request method config +// // swagger:model loginRequestMethodConfig type LoginRequestMethodConfig struct { diff --git a/internal/httpclient/models/profile_management_request.go b/internal/httpclient/models/profile_management_request.go index 8329cdc7f188..d5f9eb42e0c4 100644 --- a/internal/httpclient/models/profile_management_request.go +++ b/internal/httpclient/models/profile_management_request.go @@ -7,7 +7,7 @@ package models import ( "github.com/go-openapi/errors" - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) @@ -18,6 +18,7 @@ import ( // (especially traits) in a selfservice manner. // // For more information head over to: https://www.ory.sh/docs/kratos/selfservice/profile +// // swagger:model profileManagementRequest type ProfileManagementRequest struct { diff --git a/internal/httpclient/models/registration_request.go b/internal/httpclient/models/registration_request.go index 476d8ca158ba..93aadabd35e1 100644 --- a/internal/httpclient/models/registration_request.go +++ b/internal/httpclient/models/registration_request.go @@ -7,12 +7,13 @@ package models import ( "github.com/go-openapi/errors" - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // RegistrationRequest registration request +// // swagger:model registrationRequest type RegistrationRequest struct { diff --git a/internal/httpclient/models/registration_request_method.go b/internal/httpclient/models/registration_request_method.go index 4e6dbe10ff97..70f012f06fc3 100644 --- a/internal/httpclient/models/registration_request_method.go +++ b/internal/httpclient/models/registration_request_method.go @@ -7,11 +7,12 @@ package models import ( "github.com/go-openapi/errors" - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // RegistrationRequestMethod registration request method +// // swagger:model registrationRequestMethod type RegistrationRequestMethod struct { diff --git a/internal/httpclient/models/registration_request_method_config.go b/internal/httpclient/models/registration_request_method_config.go index fb9bbdd669fb..dd532dccfa0e 100644 --- a/internal/httpclient/models/registration_request_method_config.go +++ b/internal/httpclient/models/registration_request_method_config.go @@ -9,12 +9,13 @@ import ( "strconv" "github.com/go-openapi/errors" - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // RegistrationRequestMethodConfig registration request method config +// // swagger:model registrationRequestMethodConfig type RegistrationRequestMethodConfig struct { diff --git a/internal/httpclient/models/session.go b/internal/httpclient/models/session.go index 6f56dbd83001..ae09bba19410 100644 --- a/internal/httpclient/models/session.go +++ b/internal/httpclient/models/session.go @@ -7,12 +7,13 @@ package models import ( "github.com/go-openapi/errors" - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // Session session +// // swagger:model session type Session struct { diff --git a/internal/httpclient/models/traits.go b/internal/httpclient/models/traits.go index e39059ab688c..6aefa298503d 100644 --- a/internal/httpclient/models/traits.go +++ b/internal/httpclient/models/traits.go @@ -6,5 +6,6 @@ package models // Editing this file might prove futile when you re-run the swagger generate command // Traits traits +// // swagger:model Traits type Traits interface{} diff --git a/internal/httpclient/models/uuid.go b/internal/httpclient/models/uuid.go index f5b247624d0d..f28209a7a402 100644 --- a/internal/httpclient/models/uuid.go +++ b/internal/httpclient/models/uuid.go @@ -7,11 +7,12 @@ package models import ( "github.com/go-openapi/errors" - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/go-openapi/validate" ) // UUID UUID +// // swagger:model UUID type UUID strfmt.UUID4 diff --git a/internal/httpclient/models/verifiable_address.go b/internal/httpclient/models/verifiable_address.go index 7d6de66bae2e..7f6d5f9fbfeb 100644 --- a/internal/httpclient/models/verifiable_address.go +++ b/internal/httpclient/models/verifiable_address.go @@ -7,12 +7,13 @@ package models import ( "github.com/go-openapi/errors" - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) // VerifiableAddress verifiable address +// // swagger:model VerifiableAddress type VerifiableAddress struct { diff --git a/internal/httpclient/models/verifiable_address_type.go b/internal/httpclient/models/verifiable_address_type.go index 6a34a17742e2..ec7b8b5ca309 100644 --- a/internal/httpclient/models/verifiable_address_type.go +++ b/internal/httpclient/models/verifiable_address_type.go @@ -6,10 +6,11 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" ) // VerifiableAddressType verifiable address type +// // swagger:model VerifiableAddressType type VerifiableAddressType string diff --git a/internal/httpclient/models/verification_request.go b/internal/httpclient/models/verification_request.go index 037ff937d009..95c22c31a89e 100644 --- a/internal/httpclient/models/verification_request.go +++ b/internal/httpclient/models/verification_request.go @@ -7,7 +7,7 @@ package models import ( "github.com/go-openapi/errors" - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" "github.com/go-openapi/validate" ) @@ -18,6 +18,7 @@ import ( // channel such as an email address or a phone number. // // For more information head over to: https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation +// // swagger:model verificationRequest type VerificationRequest struct { diff --git a/internal/httpclient/models/version.go b/internal/httpclient/models/version.go index 748ab7974b14..8e687bcb20df 100644 --- a/internal/httpclient/models/version.go +++ b/internal/httpclient/models/version.go @@ -6,11 +6,12 @@ package models // Editing this file might prove futile when you re-run the swagger generate command import ( - strfmt "github.com/go-openapi/strfmt" + "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // Version version +// // swagger:model version type Version struct { From 59a93eccb014b7bf0ab304c1b2f816287768b88e Mon Sep 17 00:00:00 2001 From: zepatrik <11patti1@gmx.de> Date: Mon, 16 Mar 2020 15:41:16 +0100 Subject: [PATCH 8/8] make sdk --- internal/httpclient/models/generic_error_payload.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/httpclient/models/generic_error_payload.go b/internal/httpclient/models/generic_error_payload.go index dff6c9dc06b0..5fe7451bff05 100644 --- a/internal/httpclient/models/generic_error_payload.go +++ b/internal/httpclient/models/generic_error_payload.go @@ -10,7 +10,7 @@ import ( "github.com/go-openapi/swag" ) -// GenericErrorPayload nolint:deadcode,unused +// GenericErrorPayload generic error payload // // swagger:model genericErrorPayload type GenericErrorPayload struct { @@ -22,7 +22,7 @@ type GenericErrorPayload struct { Debug string `json:"debug,omitempty"` // details - Details []map[string]interface{} `json:"details"` + Details map[string]interface{} `json:"details,omitempty"` // message Message string `json:"message,omitempty"`