Skip to content

Commit d3d9fcf

Browse files
committed
Fix wrong schema
1 parent 979acb7 commit d3d9fcf

File tree

2 files changed

+41
-12
lines changed

2 files changed

+41
-12
lines changed

src/components/schemas/MyAccount.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
type: object
2+
required:
3+
- user
4+
properties:
5+
user:
6+
required:
7+
- id
8+
- login
9+
- admin
10+
- firstname
11+
- lastname
12+
- mail
13+
- created_on
14+
- last_login_on
15+
- api_key
16+
properties:
17+
id:
18+
type: integer
19+
login:
20+
type: string
21+
admin:
22+
type: boolean
23+
firstname:
24+
type: string
25+
lastname:
26+
type: string
27+
mail:
28+
type: string
29+
created_on:
30+
type: string
31+
format: date-time
32+
last_login_on:
33+
type: string
34+
format: date-time
35+
api_key:
36+
type: string
37+
custom_fields:
38+
type: array
39+
items:
40+
$ref: ./IdName.yml

src/paths/my_account.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,7 @@ get:
1313
content:
1414
application/json:
1515
schema:
16-
type: object
17-
properties:
18-
user:
19-
allOf:
20-
- $ref: ../components/schemas/User.yml
21-
- $ref: ../components/schemas/User.partial.yml
22-
- type: object
23-
properties:
24-
custom_fields:
25-
type: array
26-
items:
27-
$ref: ../components/schemas/IdName.yml
16+
$ref: ../components/schemas/MyAccount.yml
2817

2918
put:
3019
tags:

0 commit comments

Comments
 (0)