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

Feature request: multiline variables #20

Open
mawkler opened this issue Jan 18, 2023 · 1 comment
Open

Feature request: multiline variables #20

mawkler opened this issue Jan 18, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@mawkler
Copy link

mawkler commented Jan 18, 2023

It would be neat if I could divide a JSON variable into multiple lines.

The following request

@value = {
  "foo": 1,
  "bar": 2
}

POST http://localhost

{{value}}

yields the following curl request

curl -sSL --compressed -X 'POST' --data-raw '{' 'http://localhost'

As you can see, only the first line ({) of the object in @variable gets included in the request

Expected result:

curl -sSL --compressed -X 'POST' --data-raw '{ "foo": 1, "bar": 2 }' 'http://localhost'
@NTBBloodbath NTBBloodbath transferred this issue from rest-nvim/rest.nvim Mar 16, 2024
@NTBBloodbath
Copy link
Member

Note: transferred from rest.nvim repository as this has something to do with the parser grammar.

@NTBBloodbath NTBBloodbath added the enhancement New feature or request label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants