Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -411,13 +411,13 @@
"userhandler.userPatchBody": {
"type": "object",
"properties": {
"activityLevel": {
"activity_level": {
"type": "number"
},
"birthdate": {
"type": "string"
},
"displayName": {
"display_name": {
"type": "string"
},
"sex": {
Expand Down
4 changes: 2 additions & 2 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions internal/handlers/userhandler/patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading