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

Add modelerfour parameter to control whether Accept header parameter is generated #3720

Closed
daviwil opened this issue Dec 3, 2020 · 0 comments · Fixed by Azure/autorest.modelerfour#366
Assignees
Labels

Comments

@daviwil
Copy link
Contributor

daviwil commented Dec 3, 2020

Modelerfour has a flag called --modelerfour.always-create-content-type-parameter to control whether the Content-Type header parameter is added to operations automatically. We also automatically add the Accept header parameter automatically but we've been asked to put it behind a parameter so that the behavior can be disabled.

We should add a new parameter --modelerfour.always-create-accept-parameter and default it to true to retain the current behavior. This would require similar logic as we have for the Content-Type parameter so we can basically that same implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants