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

Feature request: allow configure default "Accept" header #32

Open
weilai-irl opened this issue Nov 29, 2024 · 0 comments
Open

Feature request: allow configure default "Accept" header #32

weilai-irl opened this issue Nov 29, 2024 · 0 comments

Comments

@weilai-irl
Copy link

In OpenAPI specification 3.0 or later, it's not possible to define an "Accept" header for all API requests, rather the value of the Accept header is defined in each function. As a result, when making a web service call from systems complying with OpenAPI spec, no Accept header is included. This would result in an error straight away.

The solution we come up with is to allow configuring a default Accept header content in the plugin, and use it if (1) Accept header doesn't present, AND (2) the option is enabled, AND (3) a default Accept header value is configured.

A PR has been / will be created. Please consider merging this.

Regards,
Lai

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

No branches or pull requests

1 participant