Skip to content

Commit edc167f

Browse files
committed
Update user endpoint response shapes
1 parent 6c11439 commit edc167f

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

paths/get_user.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ get:
1515
content:
1616
application/json:
1717
schema:
18-
"$ref": "../schemas/user.yaml"
18+
type: object
19+
properties:
20+
user:
21+
"$ref": "../schemas/user.yaml"
1922
'401':
2023
"$ref": "../responses/unauthorized.yaml"
2124
'403':
2225
"$ref": "../responses/forbidden.yaml"
2326
'404':
24-
"$ref": "../responses/not_found.yaml"
27+
"$ref": "../responses/not_found.yaml"

schemas/user.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ properties:
2323
type: string
2424
large:
2525
type: string
26+
custom_picture:
27+
type: bool
28+
example: false

0 commit comments

Comments
 (0)