-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(open-payments): make schema validation in the open-payments clie…
…nt behind a flag (#467) * chore: use node 20 * chore: update @types/node * chore(ci): update actions * feat(open-payments): use ky as httpclient * chore(open-payments): fix request signing * feat(open-payments): add validateResponses flag to optionally disable openapi schema validation * chore(open-payments): dont parse DELETE response body * chore(open-payments): handle DELETE body parsing * chore(open-payments): handle DELETE body parsing * chore(open-payments): handle DELETE body parsing * chore(open-payments): only try parsing DELETE body if its not a 204 response * chore(open-payments): only try parsing DELETE body if its not a 204 response * feat(open-payments): finalize and test requests * chore(open-payments): update nock and ky usage in jest * chore(open-payments): fix tests after update to ky * Revert "feat(open-payments): add validateResponses flag to optionally disable openapi schema validation" This reverts commit b5f986a. # Conflicts: # packages/open-payments/src/client/requests.test.ts # packages/open-payments/src/client/requests.ts * chore(open-payments): cleanup files after commit revert * chore(ci): update actions * chore: use node 20 * chore(ci): update actions * chore(open-payments): use dynamic import to resolve ky package * chore(open-payments): allow nock to patch global.fetch * chore(open-payments): allow nock to patch global.fetch in global setup * chore(open-payments): fix test & lint * chore(open-payments): continue nock cleanup * chore: add changeset * chore: update jest in workspace * Revert "chore(open-payments): allow nock to patch global.fetch in global setup" This reverts commit 9285d60. * chore: update @swc/jest * chore(open-payments): nock cleanup * feat(open-payments): add validateResponses flag to optionally disable openapi schema validation # Conflicts: # packages/open-payments/src/client/requests.test.ts # packages/open-payments/src/client/requests.ts * chore(open-payments): add tests for optional schema validation * chore(open-payments): update readme * chore(open-payments):add changeset * feat(open-payments): make openApi schema optional in client * chore: edit changeset * chore: simplify init
- Loading branch information
Showing
16 changed files
with
847 additions
and
590 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@interledger/open-payments': minor | ||
--- | ||
|
||
Adding `validateResponses` flag to Open Payments client initialization functions. | ||
This flag enables or disables response validation against the Open Payments OpenAPI specs (via the @interledger/openapi package). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.