From 97a1e2b0155cac755582db210bab4d368fb3ab5f Mon Sep 17 00:00:00 2001 From: Shreya Thapa Date: Tue, 2 Dec 2025 14:31:52 -0600 Subject: [PATCH 1/2] Fix schemas as per test results in Speakeasy SDK testing --- openapi.yml | 19 ++++++++++++------- specs/resources/authorization.yml | 9 +++++---- specs/resources/client-tokens.yml | 2 +- .../transfers/listFeesForTransfer.yml | 5 +++-- specs/schemas/customers/Customers.yml | 3 +++ .../schemas/funding-sources/FundingSource.yml | 1 + 6 files changed, 25 insertions(+), 14 deletions(-) diff --git a/openapi.yml b/openapi.yml index b15e90c..d151ebf 100644 --- a/openapi.yml +++ b/openapi.yml @@ -66,6 +66,8 @@ paths: operationId: createApplicationAccessToken x-speakeasy-group: tokens x-speakeasy-name-override: create + security: + - basicAuth: [] x-codeSamples: - lang: bash source: | @@ -142,10 +144,8 @@ paths: example: gTm0p62yYXFiB1rOdhV0TsNOinC2V2P1CMaAtojkO9JEGbv3i5 token_type: type: string - enum: - - bearer - description: The type of token, always "bearer" - example: bearer + description: The type of token, always "Bearer" + example: Bearer expires_in: type: integer description: The lifetime of the access token, in seconds. Default is 3600. @@ -4853,8 +4853,9 @@ paths: format: date-time example: '2016-02-22T20:46:38.777Z' total: - type: string - example: '1' + type: integer + format: int32 + example: 1 '404': description: 404 Not Found headers: {} @@ -9567,7 +9568,7 @@ paths: '200': description: Client token created successfully content: - application/json: + application/vnd.dwolla.v1.hal+json: schema: type: object required: @@ -9837,6 +9838,7 @@ components: - ach - real-time-payments - wire + - external example: ach bankName: type: string @@ -10467,6 +10469,9 @@ components: - $ref: '#/components/schemas/VerifiedPersonalCustomer' - $ref: '#/components/schemas/VerifiedSolePropCustomer' - $ref: '#/components/schemas/VerifiedBusinessCustomer' + total: + type: integer + example: 2 ForbiddenError: title: ForbiddenError description: Error response schema for 403 Forbidden diff --git a/specs/resources/authorization.yml b/specs/resources/authorization.yml index 609a6f4..a284809 100644 --- a/specs/resources/authorization.yml +++ b/specs/resources/authorization.yml @@ -6,6 +6,8 @@ post: operationId: createApplicationAccessToken x-speakeasy-group: tokens x-speakeasy-name-override: create + security: + - basicAuth: [] x-codeSamples: - lang: bash source: | @@ -81,9 +83,8 @@ post: example: gTm0p62yYXFiB1rOdhV0TsNOinC2V2P1CMaAtojkO9JEGbv3i5 token_type: type: string - enum: [bearer] - description: The type of token, always "bearer" - example: bearer + description: The type of token, always "Bearer" + example: Bearer expires_in: type: integer description: The lifetime of the access token, in seconds. Default is 3600. @@ -98,4 +99,4 @@ post: properties: error: type: string - example: invalid_client + example: invalid_client \ No newline at end of file diff --git a/specs/resources/client-tokens.yml b/specs/resources/client-tokens.yml index 391aba9..49376b5 100644 --- a/specs/resources/client-tokens.yml +++ b/specs/resources/client-tokens.yml @@ -114,7 +114,7 @@ post: '200': description: Client token created successfully content: - application/json: + application/vnd.dwolla.v1.hal+json: schema: type: object required: diff --git a/specs/resources/transfers/listFeesForTransfer.yml b/specs/resources/transfers/listFeesForTransfer.yml index 35910f4..3bc399d 100644 --- a/specs/resources/transfers/listFeesForTransfer.yml +++ b/specs/resources/transfers/listFeesForTransfer.yml @@ -90,8 +90,9 @@ get: format: date-time example: '2016-02-22T20:46:38.777Z' total: - type: string - example: '1' + type: integer + format: int32 + example: 1 '404': description: 404 Not Found headers: {} diff --git a/specs/schemas/customers/Customers.yml b/specs/schemas/customers/Customers.yml index 316ef59..7518eb5 100644 --- a/specs/schemas/customers/Customers.yml +++ b/specs/schemas/customers/Customers.yml @@ -17,3 +17,6 @@ Customers: - $ref: './Customer.yml#/VerifiedPersonalCustomer' - $ref: './Customer.yml#/VerifiedSolePropCustomer' - $ref: './Customer.yml#/VerifiedBusinessCustomer' + total: + type: integer + example: 2 diff --git a/specs/schemas/funding-sources/FundingSource.yml b/specs/schemas/funding-sources/FundingSource.yml index 8d6abcc..4095f41 100644 --- a/specs/schemas/funding-sources/FundingSource.yml +++ b/specs/schemas/funding-sources/FundingSource.yml @@ -36,6 +36,7 @@ FundingSource: - ach - real-time-payments - wire + - external example: ach bankName: type: string From a6ec0df2c924c37286ccbc8586ae6d2fc2ee4a6b Mon Sep 17 00:00:00 2001 From: Shreya Thapa Date: Tue, 2 Dec 2025 14:43:34 -0600 Subject: [PATCH 2/2] Ignore redocly warnings, Speakeasy linting works fine --- redocly.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 redocly.yaml diff --git a/redocly.yaml b/redocly.yaml new file mode 100644 index 0000000..03984fa --- /dev/null +++ b/redocly.yaml @@ -0,0 +1,6 @@ +extends: + - recommended + +rules: + security-defined: off +