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 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