-
Notifications
You must be signed in to change notification settings - Fork 59
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
Portman generates wrong Accept header in request when a responce has an empty content type #400
Comments
hi @theold190 We will look into this, since it seems not the default behaviour. |
Thanks for a fast reply. We are not using any extra configuration. Here is how we execute portman command:
If I read documentation right, it means we are using default configuration. Also, there are no extra environment variables defined:
We are running it both on Windows and Linux and get same results. Please write if you need any more info or if you have questions when reproducing the issue. |
hi @theold190 We were able to reproduce the issue. Behind the scenes Portman is using Postman library openapi-to-postman for doing the initial conversion. It seems like an issue in the library, for which I created a Github item. We will monitor it for feedback and depending on that review the options. |
Great! Glad that it is helping to make a better tool and reduce the confusion users might have. I have subscribed to new issue and if needed can provide more info. |
We have noticed an issue in generated Postman collections if there is a response without content type defined. It seems very similar to issue reported in #392.
Here is an example of a specification, where one of responses has no content (204):
Generated Postman collection will contain:
Note an "Accept: application/problem+json" in request part of a generated file.
Though if we add at least one responce with "application/json" content (201), then generated Postman collection contains "Accept: application/json".
Generated Postman collection will contain:
We are using Portman 1.18.0.
Is that an expected behavior?
The text was updated successfully, but these errors were encountered: