From e2c62588b552231a23be35a34978739a1134b412 Mon Sep 17 00:00:00 2001 From: LightJack05 <66321084+LightJack05@users.noreply.github.com> Date: Tue, 10 Feb 2026 18:24:02 +0100 Subject: [PATCH 1/2] Fix naming on patch body --- internal/handlers/userhandler/patch.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/handlers/userhandler/patch.go b/internal/handlers/userhandler/patch.go index 563a8d4..a12e8d6 100644 --- a/internal/handlers/userhandler/patch.go +++ b/internal/handlers/userhandler/patch.go @@ -11,12 +11,12 @@ import ( ) type userPatchBody struct { - DisplayName *string `json:"displayName,omitempty"` + DisplayName *string `json:"display_name,omitempty"` Birthdate *time.Time `json:"birthdate,omitempty"` Sex *string `json:"sex,omitempty" binding:"omitempty,len=1"` Weight *float64 `json:"weight,omitempty"` - ActivityLevel *float64 `json:"activityLevel,omitempty"` + ActivityLevel *float64 `json:"activity_level,omitempty"` } // Patch godoc From c5f5ebc80393ec528909f1927af90e7b0d0496a3 Mon Sep 17 00:00:00 2001 From: LightJack05 <66321084+LightJack05@users.noreply.github.com> Date: Tue, 10 Feb 2026 18:24:57 +0100 Subject: [PATCH 2/2] perf: Update swagger docs BREAKING CHANGE: Update to swagger api schema --- docs/docs.go | 4 ++-- docs/swagger.json | 4 ++-- docs/swagger.yaml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 14bcfe1..5f9682a 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -418,13 +418,13 @@ const docTemplate = `{ "userhandler.userPatchBody": { "type": "object", "properties": { - "activityLevel": { + "activity_level": { "type": "number" }, "birthdate": { "type": "string" }, - "displayName": { + "display_name": { "type": "string" }, "sex": { diff --git a/docs/swagger.json b/docs/swagger.json index 624d2c3..f7ef03c 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -411,13 +411,13 @@ "userhandler.userPatchBody": { "type": "object", "properties": { - "activityLevel": { + "activity_level": { "type": "number" }, "birthdate": { "type": "string" }, - "displayName": { + "display_name": { "type": "string" }, "sex": { diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 27ab54a..4ce6df5 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -75,11 +75,11 @@ definitions: type: object userhandler.userPatchBody: properties: - activityLevel: + activity_level: type: number birthdate: type: string - displayName: + display_name: type: string sex: type: string