SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
fix: minor changes for gateway and forgot password apis (#10204)
Karan Balani9dc7d2389a09
diff --git a/docs/api/openapi.yml b/docs/api/openapi.ymlindex 1e6bebf327..cffafdf812 100644--- a/docs/api/openapi.yml+++ b/docs/api/openapi.yml@@ -2226,6 +2226,12 @@ paths:schema:$ref: '#/components/schemas/RenderErrorResponse'description: Bad Request+ "422":+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RenderErrorResponse'+ description: Unprocessable Entity"500":content:application/json:@@ -4376,6 +4382,9 @@ components:type: stringorgId:type: string+ required:+ - orgIdtype: objectTypesPostableInvite:properties:diff --git a/pkg/apiserver/signozapiserver/user.go b/pkg/apiserver/signozapiserver/user.goindex ddb4268e40..ba18b37ddd 100644--- a/pkg/apiserver/signozapiserver/user.go+++ b/pkg/apiserver/signozapiserver/user.go@@ -325,7 +325,7 @@ func (provider *provider) addUserRoutes(router *mux.Router) error {Response: nil,ResponseContentType: "",SuccessStatusCode: http.StatusNoContent,- ErrorStatusCodes: []int{http.StatusBadRequest},+ ErrorStatusCodes: []int{http.StatusBadRequest, http.StatusUnprocessableEntity},Deprecated: false,SecuritySchemes: []handler.OpenAPISecurityScheme{},})).Methods(http.MethodPost).GetError(); err != nil {diff --git a/pkg/modules/user/impluser/module.go b/pkg/modules/user/impluser/module.goindex 4f10e4d1b1..56ab87498e 100644--- a/pkg/modules/user/impluser/module.go+++ b/pkg/modules/user/impluser/module.go@@ -369,7 +369,7 @@ func (module *Module) GetOrCreateResetPasswordToken(ctx context.Context, userIDfunc (module *Module) ForgotPassword(ctx context.Context, orgID valuer.UUID, email valuer.Email, frontendBaseURL string) error {if !module.config.Password.Reset.AllowSelf {- return errors.New(errors.TypeUnsupported, errors.CodeUnsupported, "users are not allowed to reset their password themselves, please contact an admin to reset your password")+ return errors.New(errors.TypeUnsupported, errors.CodeUnsupported, "Users are not allowed to reset their password themselves, please contact an admin to reset your password.")}user, err := module.store.GetUserByEmailAndOrgID(ctx, email, orgID)diff --git a/pkg/types/factor_password.go b/pkg/types/factor_password.goindex acb49424b6..c49b0f21a5 100644--- a/pkg/types/factor_password.go+++ b/pkg/types/factor_password.go@@ -36,8 +36,8 @@ type ChangePasswordRequest struct {}type PostableForgotPassword struct {- OrgID valuer.UUID `json:"orgId"`- Email valuer.Email `json:"email"`+ OrgID valuer.UUID `json:"orgId" required:"true"`+ Email valuer.Email `json:"email" required:"true"`FrontendBaseURL string `json:"frontendBaseURL"`}diff --git a/pkg/types/gatewaytypes/ingestionkey.go b/pkg/types/gatewaytypes/ingestionkey.goindex 2c6e0bbd2d..c644ab844e 100644--- a/pkg/types/gatewaytypes/ingestionkey.go+++ b/pkg/types/gatewaytypes/ingestionkey.go@@ -33,8 +33,8 @@ type LimitConfig struct {}type LimitValue struct {- Size int64 `json:"size,omitempty"`- Count int64 `json:"count,omitempty"`+ Size int64 `json:"size"`+ Count int64 `json:"count"`}type LimitMetric struct {