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(fetch): pass headers to fetch when headers option is activated #1780

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

clemeth
Copy link

@clemeth clemeth commented Dec 30, 2024

Status

READY

Description

Passes headers to fetch when headers option is activated.

Fixes #1779.

I have not tested the patch since the build system doesn't support the system I am on.

Copy link
Collaborator

@melloware melloware left a comment

Choose a reason for hiding this comment

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

LGTM but i will let @soartec-lab review

@soartec-lab soartec-lab self-assigned this Dec 31, 2024
@soartec-lab
Copy link
Member

Sure, please give me a few days to review it 👍

Copy link
Member

@soartec-lab soartec-lab left a comment

Choose a reason for hiding this comment

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

@clemeth
Thanks!
Since we are managing test cases, could you please add a test case that uses headers: true?

https://github.com/orval-labs/orval/blob/master/tests/configs/fetch.config.ts

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.

Generated endpoint headers are not passed to fetch
3 participants