@@ -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 :
@@ -113,6 +123,86 @@ paths:
113
123
application/json :
114
124
schema :
115
125
$ref : ' #/components/schemas/OffsetPagination'
126
+
127
+ ' /multipart ' :
128
+ post :
129
+ requestBody :
130
+ content :
131
+ image/gif :
132
+ schema :
133
+ type : string
134
+ format : binary
135
+ multipart/form-data :
136
+ schema :
137
+ type : object
138
+ additionalProperties : true
139
+
140
+ ' /users/{uid}/state/{sid} ' :
141
+ put :
142
+ operationId : put-user-state
143
+ summary : Upserts a user state
144
+ parameters :
145
+ - name : uid
146
+ in : path
147
+ required : true
148
+ schema :
149
+ type : string
150
+ - name : sid
151
+ in : path
152
+ description : The state id or key
153
+ required : true
154
+ schema :
155
+ type : string
156
+ requestBody :
157
+ content :
158
+ application/json :
159
+ schema :
160
+ $ref : ' #/components/schemas/UserStateValue'
161
+ required : true
162
+ responses :
163
+ ' 200 ' :
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
+
116
206
components :
117
207
responses :
118
208
ResponseError :
@@ -309,6 +399,14 @@ components:
309
399
discriminator :
310
400
propertyName : objType
311
401
402
+ OneOfExampleList :
403
+ type : object
404
+ properties :
405
+ items :
406
+ type : array
407
+ items :
408
+ $ref : ' #/components/schemas/OneOfExample'
409
+
312
410
AllOfExample :
313
411
type : object
314
412
description : Example using allOf
@@ -320,4 +418,161 @@ components:
320
418
status :
321
419
type : string
322
420
enum : [pending, approved, rejected]
323
-
421
+
422
+ UserStateValue :
423
+ type : " object"
424
+ oneOf :
425
+ - $ref : ' #/components/schemas/UserStateCoffeeCx'
426
+ - $ref : ' #/components/schemas/UserUploads'
427
+ - $ref : ' #/components/schemas/UserStateWidgets'
428
+ discriminator :
429
+ propertyName : type
430
+ UserStateCoffeeCx :
431
+ type : object
432
+ required :
433
+ - type
434
+ - enabled
435
+ properties :
436
+ type :
437
+ type : string
438
+ enum : [coffeeCx]
439
+ enabled :
440
+ type : boolean
441
+ description : Whether a certain flag, feature, etc. is enabled or not
442
+ nullableTest :
443
+ type : string
444
+ nullable : true
445
+ UserUploads :
446
+ type : object
447
+ required :
448
+ - type
449
+ - entries
450
+ properties :
451
+ type :
452
+ type : string
453
+ enum : [userUploads]
454
+ entries :
455
+ type : array
456
+ maxItems : 1000
457
+ items :
458
+ $ref : ' #/components/schemas/UserUploadEntry'
459
+ UserUploadEntry :
460
+ type : object
461
+ required :
462
+ - id
463
+ - status
464
+ - name
465
+ - communityId
466
+ properties :
467
+ id :
468
+ type : string
469
+ uploadId :
470
+ type : string
471
+ status :
472
+ type : string
473
+ enum :
474
+ - ongoing
475
+ - completed
476
+ - error
477
+ name :
478
+ type : string
479
+ communityId :
480
+ type : string
481
+ path :
482
+ description : >-
483
+ path to which the file will be uploaded (e.g. General (default), BCP
484
+ Article Files...)
485
+ $ref : ' #/components/schemas/SafePath'
486
+ blobUrl :
487
+ type : string
488
+ url :
489
+ type : string
490
+ SafePath :
491
+ type : string
492
+ pattern : (?=(^(?!.*\.\.\/).+))(?=(^(?!.*\/\/).+))
493
+ description : >-
494
+ A valid path that matches any sequence of characters except if it
495
+ contains '../', '//' (to avoid directory traversal attacks)
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