Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit 9a3463c

Browse files
committed
Add Code Snippets to Spec Files
1 parent 18fcc22 commit 9a3463c

File tree

2 files changed

+35
-25
lines changed

2 files changed

+35
-25
lines changed

site/specs/messaging-tfverify-athena.yml

Lines changed: 34 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -302,25 +302,6 @@ components:
302302
$ref: '#/components/schemas/nullableString'
303303
webhookUrl:
304304
$ref: '#/components/schemas/webhookUrl'
305-
tfvPostResponseBody:
306-
type: object
307-
properties:
308-
accountId:
309-
type: string
310-
description: Bandwidth account ID
311-
example: '9900910'
312-
errors:
313-
type: object
314-
description: >-
315-
Listing of errors from your request, relevant for a partial success
316-
or complete failure
317-
example:
318-
type: bad request
319-
description: cannot process request
320-
errors:
321-
useCase:
322-
- useCase must not be blank
323-
- useCase cannot be more than 500 characters
324305
tfvStatus:
325306
type: object
326307
properties:
@@ -371,6 +352,39 @@ components:
371352
required:
372353
- type
373354
- description
355+
badRequestError:
356+
title: BadRequestError
357+
type: object
358+
properties:
359+
type:
360+
type: string
361+
example: bad request
362+
description:
363+
type: string
364+
example: cannot process request
365+
errors:
366+
type: object
367+
description: >-
368+
Each key of this errors object refers to a field of the submitted
369+
object (using dot notation for nested objects), with the field being
370+
a key to an array of one or more errors for that field.
371+
example:
372+
name:
373+
- is required
374+
email:
375+
- is not a valid email address
376+
- is longer than 100 characters
377+
additionalProperties:
378+
type: array
379+
items:
380+
type: string
381+
example: is required
382+
example:
383+
- is not a valid email address
384+
- is longer than 100 characters
385+
required:
386+
- type
387+
- description
374388
accountId:
375389
type: integer
376390
description: Your Bandwidth Account ID
@@ -428,10 +442,6 @@ components:
428442
responses:
429443
verifyPostResponse:
430444
description: Accepted
431-
content:
432-
application/json:
433-
schema:
434-
$ref: '#/components/schemas/tfvPostResponseBody'
435445
verifyStatusResponse:
436446
description: OK
437447
content:
@@ -449,7 +459,7 @@ components:
449459
content:
450460
application/json:
451461
schema:
452-
$ref: '#/components/schemas/verificationRequestError'
462+
$ref: '#/components/schemas/badRequestError'
453463
unauthorizedResponse:
454464
description: Unauthorized
455465
content:

site/specs/voice.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6364,7 +6364,7 @@ components:
63646364
$ref: '#/components/schemas/tag'
63656365
status:
63666366
$ref: '#/components/schemas/status'
6367-
disconenctCallback:
6367+
disconnectCallback:
63686368
type: object
63696369
description: The Disconnect event is fired when a call ends, for any reason.
63706370
properties:

0 commit comments

Comments
 (0)