Skip to content

Commit 0a26c78

Browse files
Add fixes for user related type conflicts
1 parent a056bc6 commit 0a26c78

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

api_spec.yaml

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@ paths:
11991199
properties:
12001200
method:
12011201
$ref: '#/components/schemas/method'
1202-
formfields:
1202+
formFields:
12031203
$ref: '#/components/schemas/formFields'
12041204
token:
12051205
$ref: '#/components/schemas/token'
@@ -3162,6 +3162,16 @@ components:
31623162

31633163
user:
31643164
type: object
3165+
required:
3166+
- id
3167+
- webauthn
3168+
- tenantIds
3169+
- timeJoined
3170+
- isPrimaryUser
3171+
- emails
3172+
- phoneNumbers
3173+
- thirdParty
3174+
- loginMethods
31653175
properties:
31663176
id:
31673177
$ref: '#/components/schemas/userId'
@@ -3171,6 +3181,17 @@ components:
31713181
isPrimaryUser:
31723182
type: boolean
31733183
example: true
3184+
webauthn:
3185+
type: object
3186+
required:
3187+
- credentialIds
3188+
properties:
3189+
credentialIds:
3190+
type: array
3191+
items:
3192+
type: string
3193+
example: "cred_123..."
3194+
31743195
tenantIds:
31753196
type: array
31763197
items:
@@ -3190,6 +3211,9 @@ components:
31903211
type: array
31913212
items:
31923213
type: object
3214+
required:
3215+
- id
3216+
- userId
31933217
properties:
31943218
id:
31953219
type: string
@@ -3201,6 +3225,11 @@ components:
32013225
type: array
32023226
items:
32033227
type: object
3228+
required:
3229+
- recipeId
3230+
- recipeUserId
3231+
- tenantIds
3232+
- timeJoined
32043233
properties:
32053234
recipeId:
32063235
type: string
@@ -3226,6 +3255,9 @@ components:
32263255
example: +36201234123
32273256
thirdParty:
32283257
type: object
3258+
required:
3259+
- id
3260+
- userId
32293261
properties:
32303262
id:
32313263
type: string
@@ -3300,9 +3332,12 @@ components:
33003332
type: array
33013333
items:
33023334
type: object
3335+
required:
3336+
- id
3337+
- value
33033338
properties:
33043339
id:
3305-
$ref: '#/components/schemas/id'
3340+
type: string
33063341
value:
33073342
type: string
33083343
example: [ {id: email, value: [email protected]},{id: password, value: testPass123}]

0 commit comments

Comments
 (0)