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

Incompatibility with IntelliJ syntax #699

Closed
sedubois opened this issue May 28, 2024 · 5 comments
Closed

Incompatibility with IntelliJ syntax #699

sedubois opened this issue May 28, 2024 · 5 comments

Comments

@sedubois
Copy link

Hi and thank you for this great tool!

I've been trying httpYac as a way to be able to use *.http files generated in IntelliJ IDEA outside of IntelliJ. However this syntax, which is valid in IntelliJ, is not supported in httpYac (tested with the VSCode plugin):

POST {{API_ROOT}}/users/sign_in
Content-Type: application/x-www-form-urlencoded

email = {{email}} &
password = {{password}}
@AnWeber
Copy link
Owner

AnWeber commented May 28, 2024

@sedubois What is the error? It seems to work for me.

test

@sedubois
Copy link
Author

sedubois commented May 29, 2024

@AnWeber you can see the issue in the GIF you shared, the parameters received are email (with trailing space) and \npassword (with leading line break) instead of email and password. Likewise, the values contain spurious whitespace.

Screenshot 2024-05-29 at 08 38 48

@AnWeber
Copy link
Owner

AnWeber commented May 29, 2024

Not really documented Feature, will add

https://youtrack.jetbrains.com/issue/IJPL-66174/Support-formatting-for-POST-request-body-for-application-x-www-form-urlencoded

@sedubois
Copy link
Author

FYI, I got this IntelliJ syntax when importing a Postman collection into IntelliJ. Otherwise I wouldn't know it either.

@AnWeber
Copy link
Owner

AnWeber commented May 30, 2024

fixed/ supported with next realease

@AnWeber AnWeber closed this as completed May 30, 2024
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

2 participants