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

export to hurl format #195

Open
1 task
teto opened this issue May 11, 2023 · 3 comments
Open
1 task

export to hurl format #195

teto opened this issue May 11, 2023 · 3 comments
Labels
format-compat Import/export related issues, or how to interface with other tools

Comments

@teto
Copy link
Collaborator

teto commented May 11, 2023

I have some trouble with my fork of rest.nvim #174 so I thought I would try:
https://hurl.dev/
with a structured enough datastructure, it should be easy to export basic requests to hurl format.

Listing changes to be made to

@teto
Copy link
Collaborator Author

teto commented May 15, 2023

actually I quite like their format, right now I have to write lua code to decode returned value and inject them in the next step:

{% 
local body = context.json_decode(context.result.body)
context.set_env("VG_COREITEM_ID", body.coreItemId)
context.set_env("VG_SNAPSHOT_ID", body.snapshotId)
%}

but a tree-sitter grammar wont be able to parse that. Thus I think we could try to adopt HURL format when/if adding features or be able to skip their instructions so that we can use .hurl files in rest.nvim transparently

@teto
Copy link
Collaborator Author

teto commented Jul 11, 2023

note: there is a hurl grammar https://github.com/kjuulh/tree-sitter-hurl

@Chaitanyabsprip
Copy link

why can't rest.nvim work with hurl files? I haven't looked into the code base, but the availability of parsers for both http and hurl should make it easy to work with both?

@boltlessengineer boltlessengineer added the format-compat Import/export related issues, or how to interface with other tools label Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
format-compat Import/export related issues, or how to interface with other tools
Projects
None yet
Development

No branches or pull requests

3 participants