Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix params.header missing in request #1239

Merged
merged 1 commit into from
Jul 25, 2023
Merged

Fix params.header missing in request #1239

merged 1 commit into from
Jul 25, 2023

Conversation

drwpow
Copy link
Contributor

@drwpow drwpow commented Jul 25, 2023

Changes

Fixes #1230. Adds testing & support for params.header.

How to Review

Tests should pass.

Checklist

  • Unit tests updated
  • README updated
  • examples/ directory updated (only applicable for openapi-typescript)

@changeset-bot
Copy link

changeset-bot bot commented Jul 25, 2023

🦋 Changeset detected

Latest commit: 02ea810

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
openapi-fetch Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jul 25, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 02ea810
Status: ✅  Deploy successful!
Preview URL: https://e49eadf9.openapi-ts.pages.dev
Branch Preview URL: https://header.openapi-ts.pages.dev

View logs

it("requires path params", async () => {
const client = createClient<paths>({ baseUrl: "https://myapi.com/v1" });
mockFetch({ status: 200, body: JSON.stringify({ message: "OK" }) });
describe("params", () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor rearranging of test suite to be more organized

@drwpow drwpow merged commit 4c93067 into main Jul 25, 2023
@drwpow drwpow deleted the header branch July 25, 2023 03:25
@github-actions github-actions bot mentioned this pull request Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parmeters set with in: header are not added to headers
1 participant