-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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 raw input (JSON) #693
Fix raw input (JSON) #693
Conversation
Congratulations 🍻. DeepCode analyzed your code in 0.512 seconds and we found no issues. Enjoy a moment of no bugs ☀️. 💬 This comment has been generated by the DeepCode bot, installed by the owner of the repository. The DeepCode bot protects your repository by detecting and commenting on security vulnerabilities or other critical issues. |
Hey @leomp12, TravisBuddy Request Identifier: 8ee45720-6adc-11ea-8310-d706d82aa088 |
Hey @leomp12, TravisBuddy Request Identifier: de411ce0-6adc-11ea-8310-d706d82aa088 |
Hey @leomp12, TravisBuddy Request Identifier: 31e8f9d0-6add-11ea-8310-d706d82aa088 |
@liyasthomas lot of bad commits here, so if you agree with changes I would suggest to squash the PR 😅 |
Hey @leomp12, TravisBuddy Request Identifier: 4fb5cd20-6ade-11ea-8310-d706d82aa088 |
@leomp12 PR looks great! But I've been getting feedbacks from users suggesting I should enable RAW input for content-types otherthan Hope you can understand why I hotfixed that yesterday. Please add support for Raw input for all content-types expect |
Hey @liyasthomas , not sure if I undestand you 🤔 This PR is exactly ensuring JSON content will be with RAW payload, I'm not suggesting remove raw input for JSON, is the opposite. |
Hey @leomp12, TravisBuddy Request Identifier: ecc56340-6b0c-11ea-95ea-63bd0204df09 |
It's exactly what I'm doing here, forcing raw input for all content types other than I mean, with this PR users would not be able to disable RAW input for JSON, do you disagree with that? |
I understand this PR exactly does that, but at the same time it also remove the toggler to disable raw input right? What I recommend is that, we should allow user to have the freedom to toggle between Raw input and key-value input (not jut raw input) for all content-type except text/plain and application/xml. sorry if there was any confusion.
Don't do that. Allow both Raw input and key-value pair. |
Ah ok, now I understand you 😃 |
Perfect! |
Great, I'll commit a fix tomorrow |
Hey @leomp12, TravisBuddy Request Identifier: c6ec81a0-6be6-11ea-a42a-ffb46b271005 |
Hello again @liyasthomas , |
Hey @leomp12, TravisBuddy Request Identifier: b84dd6d0-6bf5-11ea-a42a-ffb46b271005 |
Related issue: #597
As I've commented on commit b14adc2, the problem with JSON body and raw input is happening again after this commit, maybe I've named things badly (
canListParameters
) and you misunderstood me, so I'm suggesting another fix 😛I've realized that it's getting
rawInput
original state from Vuex, and then it could happen to have JSON content with raw input disabled and without the toggle component, this way it would not be possible to enable raw input at all...Now I'm making sure
rawInput
is true alwayscanListParameters
is false, and kept (revert)canListParameters
to be true only withapplication/x-www-form-urlencoded
.