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

Importing an OpenAPI v3 spec does not set Content-Type for json requests #5976

Closed
1 task done
Cogniveon opened this issue May 18, 2023 · 1 comment · Fixed by #5982
Closed
1 task done

Importing an OpenAPI v3 spec does not set Content-Type for json requests #5976

Cogniveon opened this issue May 18, 2023 · 1 comment · Fixed by #5982
Labels
B-bug Bug: general classification S-verified Status: Verified by maintainer

Comments

@Cogniveon
Copy link

Expected Behavior

It should automatically detect content-type from the request media type when importing from an OpenAPI v3 spec.

Actual Behavior

Content-Type: application/json header is not being added for json requests in an OpenAPI v3 spec.

Need to manually switch it to another media type and switch it back to json for the header to be applied.

Reproduction Steps

  1. Import an openapi v3 spec with a json request
  2. Make a request (no Content-Type: application/json header)
  3. Switch to some other content type and switch back to json
  4. Make a request (Content-Type: application/json header is added now)

Is there an existing issue for this?

Additional Information

No response

Insomnia Version

2023.2.2

What operating system are you using?

Ubuntu

Operating System Version

Ubuntu 20.04.5 LTS

Installation method

insomnia.rest

Last Known Working Insomnia version

No response

@Cogniveon Cogniveon added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels May 18, 2023
filfreire added a commit to filfreire/insomnia that referenced this issue May 19, 2023
@filfreire
Copy link
Member

@AlQa-hOlic thanks for reporting this. We have a fix ready on #5982 and it will hopefully go out in one of our upcoming patch or beta releases 👍

@filfreire filfreire added S-verified Status: Verified by maintainer and removed S-unverified Status: Unverified by maintainer labels May 19, 2023
filfreire added a commit to filfreire/insomnia that referenced this issue May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-bug Bug: general classification S-verified Status: Verified by maintainer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants