From ff3d3ae84840fabbae2f3565d95f8a956a556638 Mon Sep 17 00:00:00 2001 From: Josselin Bonnaud Date: Wed, 26 Jul 2023 16:24:11 +0200 Subject: [PATCH] fix: ErrorBrowserLocationChangeRequired type --- .../model_error_browser_location_change_required.go | 10 +++++----- .../model_error_browser_location_change_required.go | 10 +++++----- selfservice/flow/error.go | 2 +- spec/api.json | 2 +- spec/swagger.json | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/internal/client-go/model_error_browser_location_change_required.go b/internal/client-go/model_error_browser_location_change_required.go index 4fdf23795557..6a4e8631dc6a 100644 --- a/internal/client-go/model_error_browser_location_change_required.go +++ b/internal/client-go/model_error_browser_location_change_required.go @@ -17,7 +17,7 @@ import ( // ErrorBrowserLocationChangeRequired struct for ErrorBrowserLocationChangeRequired type ErrorBrowserLocationChangeRequired struct { - Error *ErrorGeneric `json:"error,omitempty"` + Error *GenericError `json:"error,omitempty"` // Points to where to redirect the user to next. RedirectBrowserTo *string `json:"redirect_browser_to,omitempty"` } @@ -40,9 +40,9 @@ func NewErrorBrowserLocationChangeRequiredWithDefaults() *ErrorBrowserLocationCh } // GetError returns the Error field value if set, zero value otherwise. -func (o *ErrorBrowserLocationChangeRequired) GetError() ErrorGeneric { +func (o *ErrorBrowserLocationChangeRequired) GetError() GenericError { if o == nil || o.Error == nil { - var ret ErrorGeneric + var ret GenericError return ret } return *o.Error @@ -50,7 +50,7 @@ func (o *ErrorBrowserLocationChangeRequired) GetError() ErrorGeneric { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ErrorBrowserLocationChangeRequired) GetErrorOk() (*ErrorGeneric, bool) { +func (o *ErrorBrowserLocationChangeRequired) GetErrorOk() (*GenericError, bool) { if o == nil || o.Error == nil { return nil, false } @@ -67,7 +67,7 @@ func (o *ErrorBrowserLocationChangeRequired) HasError() bool { } // SetError gets a reference to the given ErrorGeneric and assigns it to the Error field. -func (o *ErrorBrowserLocationChangeRequired) SetError(v ErrorGeneric) { +func (o *ErrorBrowserLocationChangeRequired) SetError(v GenericError) { o.Error = &v } diff --git a/internal/httpclient/model_error_browser_location_change_required.go b/internal/httpclient/model_error_browser_location_change_required.go index 4fdf23795557..6a4e8631dc6a 100644 --- a/internal/httpclient/model_error_browser_location_change_required.go +++ b/internal/httpclient/model_error_browser_location_change_required.go @@ -17,7 +17,7 @@ import ( // ErrorBrowserLocationChangeRequired struct for ErrorBrowserLocationChangeRequired type ErrorBrowserLocationChangeRequired struct { - Error *ErrorGeneric `json:"error,omitempty"` + Error *GenericError `json:"error,omitempty"` // Points to where to redirect the user to next. RedirectBrowserTo *string `json:"redirect_browser_to,omitempty"` } @@ -40,9 +40,9 @@ func NewErrorBrowserLocationChangeRequiredWithDefaults() *ErrorBrowserLocationCh } // GetError returns the Error field value if set, zero value otherwise. -func (o *ErrorBrowserLocationChangeRequired) GetError() ErrorGeneric { +func (o *ErrorBrowserLocationChangeRequired) GetError() GenericError { if o == nil || o.Error == nil { - var ret ErrorGeneric + var ret GenericError return ret } return *o.Error @@ -50,7 +50,7 @@ func (o *ErrorBrowserLocationChangeRequired) GetError() ErrorGeneric { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ErrorBrowserLocationChangeRequired) GetErrorOk() (*ErrorGeneric, bool) { +func (o *ErrorBrowserLocationChangeRequired) GetErrorOk() (*GenericError, bool) { if o == nil || o.Error == nil { return nil, false } @@ -67,7 +67,7 @@ func (o *ErrorBrowserLocationChangeRequired) HasError() bool { } // SetError gets a reference to the given ErrorGeneric and assigns it to the Error field. -func (o *ErrorBrowserLocationChangeRequired) SetError(v ErrorGeneric) { +func (o *ErrorBrowserLocationChangeRequired) SetError(v GenericError) { o.Error = &v } diff --git a/selfservice/flow/error.go b/selfservice/flow/error.go index 4e169e3d9d69..dca7e1ead6f1 100644 --- a/selfservice/flow/error.go +++ b/selfservice/flow/error.go @@ -146,7 +146,7 @@ func NewFlowExpiredError(at time.Time) *ExpiredError { //nolint:deadcode,unused //lint:ignore U1000 Used to generate Swagger and OpenAPI definitions type errorBrowserLocationChangeRequired struct { - Error swagger.ErrorGeneric `json:"error"` + Error swagger.GenericError `json:"error"` // Points to where to redirect the user to next. RedirectBrowserTo string `json:"redirect_browser_to"` diff --git a/spec/api.json b/spec/api.json index ef4bf1ccd92d..4a786f1f6de2 100755 --- a/spec/api.json +++ b/spec/api.json @@ -643,7 +643,7 @@ "errorBrowserLocationChangeRequired": { "properties": { "error": { - "$ref": "#/components/schemas/errorGeneric" + "$ref": "#/components/schemas/genericError" }, "redirect_browser_to": { "description": "Points to where to redirect the user to next.", diff --git a/spec/swagger.json b/spec/swagger.json index 74e4a00dc4ae..ec33feba3379 100755 --- a/spec/swagger.json +++ b/spec/swagger.json @@ -3591,7 +3591,7 @@ "title": "Is sent when a flow requires a browser to change its location.", "properties": { "error": { - "$ref": "#/definitions/errorGeneric" + "$ref": "#/definitions/genericError" }, "redirect_browser_to": { "description": "Points to where to redirect the user to next.",