Skip to content

Commit 853ab25

Browse files
authored
Style updates, typo updates, added consitency with naming (#18)
1 parent c112057 commit 853ab25

File tree

74 files changed

+363
-308
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+363
-308
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ An OpenAPI specification for the Dwolla API. https://developers.dwolla.com
55
## Mock Server With Prism
66

77
Dwolla uses this OpenAPI spec to spin up a local mock server and test request and responses. Dwolla
8-
uses [Prism](https://stoplight.io/open-source/prism) from [Stoplight](https://stoplight.io/) to spin up the mock server.
8+
uses [Prism](https://stoplight.io/open-source/prism) from [Stoplight](https://stoplight.io/) to spin
9+
up the mock server.
910

1011
Follow these steps to spin up your own Dwolla mock server with Prism:
1112

specs/resources/accounts/listAccountMassPayments.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ get:
7777
example: notFound
7878
message:
7979
type: string
80-
example: Account not found.
80+
example: Account not found.

specs/resources/accounts/listAndSearchAccountTransfers.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
get:
22
tags:
33
- account
4-
summary: List and search transers for an account
5-
description: List and search transers for an account
4+
summary: List and search transfers for an account
5+
description: List and search transfers for an account
66
operationId: listAndSearchAccountTransfers
77
parameters:
88
- name: id

specs/resources/accounts/retrieveAccount.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ get:
3939
content:
4040
application/vnd.dwolla.v1.hal+json:
4141
schema:
42-
$ref: '../../schemas/common.yml#/components/schemas/NotFoundError'
42+
$ref: '../../schemas/common.yml#/components/schemas/NotFoundError'

specs/resources/customers/retrieveBusinessClassification.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ get:
3232
example: not_found
3333
message:
3434
type: string
35-
example: not found.
35+
example: not found.

specs/resources/documents/createListCustomerDocument.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ post:
6868
application/vnd.dwolla.v1.hal+json:
6969
schema:
7070
oneOf:
71-
- $ref: '../../schemas/common.yml#/components/schemas/InvalidResourceState'
71+
- $ref: '../../schemas/common.yml#/components/schemas/InvalidResourceStateSchema'
7272
- $ref: '../../schemas/common.yml#/components/schemas/NotAuthorizedSchema'
7373
'404':
7474
description: not found

specs/resources/documents/retrieveDocument.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ get:
1818
content:
1919
application/vnd.dwolla.v1.hal+json:
2020
schema:
21-
$ref: '../../schemas/documents/Document.yml#/Document'
21+
$ref: '../../schemas/documents/Document.yml#/Document'

specs/resources/events/listEvents.yml

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ get:
2323
application/vnd.dwolla.v1.hal+json:
2424
schema:
2525
$ref: '../../schemas/events/Events.yml#/Events'
26-
2726
'404':
2827
description: not found
2928
headers: {}

specs/resources/exchanges/listCreateExchangeForAccount.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ post:
5656
example: InvalidExchange
5757
message:
5858
type: string
59-
example: The exchange is no longer active.
59+
example: The exchange is no longer active.

specs/resources/exchanges/listCreateExchangeForCustomer.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,4 @@ post:
9898
example: NotFound
9999
message:
100100
type: string
101-
example: The requested resource was not found.
101+
example: The requested resource was not found.

specs/resources/funding-sources/createListCustomerFundingSources.yml

-1
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,3 @@ post:
100100
oneOf:
101101
- $ref: '../../schemas/funding-sources/CreateCustomerFundingSource.yml#/NotAuthorizedToCreateFundingSourceError'
102102
- $ref: '../../schemas/funding-sources/CreateCustomerFundingSource.yml#/VANSNotEnabledError'
103-

specs/resources/funding-sources/retrieveInitiateVerifyMicroDeposit.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ get:
2626
$ref: '../../schemas/common.yml#/components/schemas/HalLink'
2727
created:
2828
type: string
29+
format: date-time
2930
example: '2022-12-30T20:56:53.000Z'
3031
status:
3132
type: string
@@ -55,7 +56,7 @@ post:
5556
parameters:
5657
- name: id
5758
in: path
58-
description: The ID of the FS to initiate or veriify micro-deposit
59+
description: The ID of the FS to initiate or verify micro-deposit
5960
required: true
6061
schema:
6162
type: string
@@ -86,4 +87,4 @@ post:
8687
example: notFound
8788
message:
8889
type: string
89-
example: Funding source not found
90+
example: Funding source not found

specs/resources/funding-sources/retrieveUpdateRemoveFundingSource.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ post:
9090
example: InvalidResourceState
9191
message:
9292
type: string
93-
example: A removed bank cannot be updated.
93+
example: A removed bank cannot be updated.

specs/resources/kba/initiateKba.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ post:
3131
application/vnd.dwolla.v1.hal+json:
3232
schema:
3333
oneOf:
34-
- $ref: '../../schemas/common.yml#/components/schemas/InvalidResourceState'
35-
- $ref: '../../schemas/common.yml#/components/schemas/ForbiddenError'
34+
- $ref: '../../schemas/common.yml#/components/schemas/InvalidResourceStateSchema'
35+
- $ref: '../../schemas/common.yml#/components/schemas/ForbiddenError'

specs/resources/kba/verifyRetrieveKba.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -161,4 +161,7 @@ post:
161161
content:
162162
application/vnd.dwolla.v1.hal+json:
163163
schema:
164-
$ref: '../../schemas/common.yml#/components/schemas/ForbiddenError'
164+
oneOf:
165+
- $ref: '../../schemas/common.yml#/components/schemas/ForbiddenError'
166+
- $ref: '../../schemas/kba/VerifyKba.yml#/InvalidKbaSessionError'
167+
- $ref: '../../schemas/kba/VerifyKba.yml#/ExpiredKbaSessionError'

specs/resources/labels/createListCustomerLabel.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ post:
6767
description: create
6868
headers:
6969
Location:
70-
$ref: '../../schemas/common.yml#/components/headers/Location'
70+
$ref: '../../schemas/common.yml#/components/headers/Location'

specs/resources/labels/createlistLabelLedgerEntry.yml specs/resources/labels/createListLabelLedgerEntry.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ post:
6565
description: created
6666
headers:
6767
Location:
68-
$ref: '../../schemas/common.yml#/components/headers/Location'
68+
$ref: '../../schemas/common.yml#/components/headers/Location'

specs/resources/labels/retrieveLabelLedgerEntry.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ get:
1818
content:
1919
application/vnd.dwolla.v1.hal+json:
2020
schema:
21-
$ref: '../../schemas/labels/LabelLedgerEntries.yml#/LabelLedgerEntries'
21+
$ref: '../../schemas/labels/LabelLedgerEntry.yml#/LabelLedgerEntry'

specs/resources/labels/retrieveLabelReallocation.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,5 @@ get:
6161
example: ledger-entry
6262
created:
6363
type: string
64-
example: 2022-05-16T13:41:31.036Z
64+
format: date-time
65+
example: '2022-05-16T13:41:31.036Z'

specs/resources/labels/retrieveRemoveLabel.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ delete:
5353
example: InvalidResourceState
5454
message:
5555
type: string
56-
example: Amount must be zero to remove label.
56+
example: Amount must be zero to remove label.

specs/resources/mass-payments/listMassPaymentItems.yml

+4
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,7 @@ get:
6666
type: array
6767
items:
6868
$ref: '../../schemas/mass-payments/MassPaymentItem.yml#/MassPaymentItem'
69+
total:
70+
type: integer
71+
format: int32
72+
example: 3

specs/resources/mass-payments/listMassPaymentsForCustomer.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ get:
3636
content:
3737
application/vnd.dwolla.v1.hal+json:
3838
schema:
39-
$ref: '../../schemas/webhook-subscriptions/WebhookSubscription.yml#/WebhookSubscription'
39+
$ref: '../../schemas/mass-payments/MassPayments.yml#/MassPayments'

specs/resources/mass-payments/retrieveMassPaymentItem.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ get:
1818
content:
1919
application/vnd.dwolla.v1.hal+json:
2020
schema:
21-
$ref: '../../schemas/mass-payments/MassPaymentItem.yml#/MassPaymentItem'
21+
$ref: '../../schemas/mass-payments/MassPaymentItem.yml#/MassPaymentItem'

specs/resources/mass-payments/retrieveUpdateMassPayment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ post:
5151
content:
5252
application/vnd.dwolla.v1.hal+json:
5353
schema:
54-
$ref: '../../schemas/mass-payments/MassPayment.yml#/MassPayment'
54+
$ref: '../../schemas/mass-payments/MassPayment.yml#/MassPayment'

specs/resources/root.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ get:
66
operationId: root
77
responses:
88
'200':
9-
description: sucessful operation
9+
description: successful operation
1010
content:
1111
application/vnd.dwolla.v1.hal+json:
1212
schema:

specs/resources/transfers/createOnDemandTransferAuthorization.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ post:
1818
content:
1919
application/vnd.dwolla.v1.hal+json:
2020
schema:
21-
$ref: '../../schemas/common.yml#/components/schemas/ForbiddenError'
21+
$ref: '../../schemas/common.yml#/components/schemas/ForbiddenError'

0 commit comments

Comments
 (0)