@@ -76,6 +76,16 @@ paths:
76
76
schema :
77
77
$ref : ' #/components/schemas/OneOfExample'
78
78
79
+ ' /one-of-example-list ' :
80
+ get :
81
+ responses :
82
+ ' 200 ' :
83
+ description : Ok
84
+ content :
85
+ application/json :
86
+ schema :
87
+ $ref : ' #/components/schemas/OneOfExampleList'
88
+
79
89
' /all-of-example ' :
80
90
post :
81
91
requestBody :
@@ -126,7 +136,8 @@ paths:
126
136
schema :
127
137
type : object
128
138
additionalProperties : true
129
- /users/{uid}/state/{sid} :
139
+
140
+ ' /users/{uid}/state/{sid} ' :
130
141
put :
131
142
operationId : put-user-state
132
143
summary : Upserts a user state
@@ -151,6 +162,47 @@ paths:
151
162
responses :
152
163
' 200 ' :
153
164
description : OK
165
+ patch :
166
+ operationId : patch-user-state
167
+ summary : Patch a user state
168
+ parameters :
169
+ - name : uid
170
+ in : path
171
+ required : true
172
+ schema :
173
+ type : string
174
+ - name : sid
175
+ in : path
176
+ description : The state id or key
177
+ required : true
178
+ schema :
179
+ type : string
180
+ requestBody :
181
+ content :
182
+ application/json :
183
+ schema :
184
+ type : array
185
+ items :
186
+ $ref : ' #/components/schemas/PatchUserStateValue'
187
+
188
+ /webhooks/mytest/{provision} :
189
+ post :
190
+ parameters :
191
+ - name : provision
192
+ in : path
193
+ required : true
194
+ schema :
195
+ type : string
196
+ requestBody :
197
+ content :
198
+ application/json :
199
+ schema :
200
+ $ref : ' #/components/schemas/MyTestProvisionResponse'
201
+ required : true
202
+ responses :
203
+ ' 200 ' :
204
+ description : OK
205
+
154
206
components :
155
207
responses :
156
208
ResponseError :
@@ -347,6 +399,14 @@ components:
347
399
discriminator :
348
400
propertyName : objType
349
401
402
+ OneOfExampleList :
403
+ type : object
404
+ properties :
405
+ items :
406
+ type : array
407
+ items :
408
+ $ref : ' #/components/schemas/OneOfExample'
409
+
350
410
AllOfExample :
351
411
type : object
352
412
description : Example using allOf
@@ -358,11 +418,13 @@ components:
358
418
status :
359
419
type : string
360
420
enum : [pending, approved, rejected]
421
+
361
422
UserStateValue :
362
423
type : " object"
363
424
oneOf :
364
425
- $ref : ' #/components/schemas/UserStateCoffeeCx'
365
426
- $ref : ' #/components/schemas/UserUploads'
427
+ - $ref : ' #/components/schemas/UserStateWidgets'
366
428
discriminator :
367
429
propertyName : type
368
430
UserStateCoffeeCx :
@@ -376,7 +438,10 @@ components:
376
438
enum : [coffeeCx]
377
439
enabled :
378
440
type : boolean
379
- description : Whether a certain flag, feature, etc. is enabled or not
441
+ description : Whether a certain flag, feature, etc. is enabled or not
442
+ nullableTest :
443
+ type : string
444
+ nullable : true
380
445
UserUploads :
381
446
type : object
382
447
required :
@@ -428,4 +493,86 @@ components:
428
493
description : >-
429
494
A valid path that matches any sequence of characters except if it
430
495
contains '../', '//' (to avoid directory traversal attacks)
431
- maxLength : 255
496
+ maxLength : 255
497
+ UserStateWidgets :
498
+ type : object
499
+ required :
500
+ - type
501
+ - widgets
502
+ properties :
503
+ type :
504
+ type : string
505
+ enum :
506
+ - widgets
507
+ widgets :
508
+ type : array
509
+ items :
510
+ type : string
511
+ oneOf :
512
+ - minItems : 4
513
+ maxItems : 4
514
+ - minItems : 3
515
+ maxItems : 3
516
+ - minItems : 2
517
+ maxItems : 2
518
+ AnyValue :
519
+ description : Accepts any valid JSON value
520
+ additionalProperties : true
521
+ oneOf :
522
+ - type : string
523
+ - type : number
524
+ - type : integer
525
+ - type : boolean
526
+ - type : array
527
+ items :
528
+ $ref : ' #/components/schemas/AnyValue'
529
+ - type : object
530
+ additionalProperties : true
531
+ PatchUserStateValue :
532
+ type : object
533
+ required :
534
+ - op
535
+ - path
536
+ - value
537
+ properties :
538
+ op :
539
+ type : string
540
+ enum :
541
+ - replace
542
+ - add
543
+ - remove
544
+ path :
545
+ type : string
546
+ value :
547
+ $ref : ' #/components/schemas/AnyValue'
548
+ MyTestProvisionResponse :
549
+ type : object
550
+ required :
551
+ - taskId
552
+ properties :
553
+ taskId :
554
+ type : string
555
+ stateBag :
556
+ type : object
557
+ required :
558
+ - contentEntryId
559
+ properties :
560
+ contentEntryId :
561
+ type : string
562
+ guestUserUid :
563
+ type : string
564
+ siteInfo :
565
+ type : object
566
+ required :
567
+ - url
568
+ properties :
569
+ url :
570
+ type : string
571
+ teamId :
572
+ type : string
573
+ groupId :
574
+ type : string
575
+ errorMessage :
576
+ description : Reason why the job failed.
577
+ type : string
578
+
0 commit comments