diff --git a/api/user/other.go b/api/user/other.go index 26f88ac..cf39964 100644 --- a/api/user/other.go +++ b/api/user/other.go @@ -20,6 +20,7 @@ import ( // @Success 200 {object} utils.RespStatus{data=service_user.UserInfoData} "Successful profile retrieval" // @Failure 403 {object} utils.RespStatus{data=nil} "Missing User ID / Unauthorized" // @Failure 404 {object} utils.RespStatus{data=nil} "User Not Found" +// @Failure 404 {object} utils.RespStatus{data=service_user.UserInfoData} "User Not Public" // @Failure 500 {object} utils.RespStatus{data=nil} "Internal Server Error (UUID Parse Failed)" // @Security ApiKeyAuth // @Router /user/info/{user_id} [get] diff --git a/docs/docs.go b/docs/docs.go index 4c28009..12575bd 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1126,7 +1126,7 @@ const docTemplate = `{ } }, "404": { - "description": "User Not Found", + "description": "User Not Public", "schema": { "allOf": [ { @@ -1136,7 +1136,7 @@ const docTemplate = `{ "type": "object", "properties": { "data": { - "type": "object" + "$ref": "#/definitions/service_user.UserInfoData" } } } diff --git a/docs/swagger.json b/docs/swagger.json index 9d70fab..a29e081 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -1124,7 +1124,7 @@ } }, "404": { - "description": "User Not Found", + "description": "User Not Public", "schema": { "allOf": [ { @@ -1134,7 +1134,7 @@ "type": "object", "properties": { "data": { - "type": "object" + "$ref": "#/definitions/service_user.UserInfoData" } } } diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 1195719..db9a1d1 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -755,13 +755,13 @@ paths: type: object type: object "404": - description: User Not Found + description: User Not Public schema: allOf: - $ref: '#/definitions/utils.RespStatus' - properties: data: - type: object + $ref: '#/definitions/service_user.UserInfoData' type: object "500": description: Internal Server Error (UUID Parse Failed)