Skip to content

fix: decomment not working in json body #1819

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

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

asonkeri
Copy link
Contributor

Request body json was not decommented if json parsing fails, which would happen if variables are not quoted.

Fixes #888

Description

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

Request body json was not decommented if json parsing fails, which
would happen if variables are not quoted.

Fixes usebruno#888
@thubble
Copy link

thubble commented Jun 13, 2024

I applied this to the git main branch (as of yesterday), and it fixed the issue with using comments and variables in the same query. I did not notice any regressions.

This is one of the main blockers for us migrating from Postman, since we imported some very large collections with hundreds of queries and tests, many of which use both variables and comments.

This seems to be a fairly low-risk change - would it be possible to get it merged in for the next release?

@helloanoop helloanoop merged commit 9c11e27 into usebruno:main Jun 19, 2024
@helloanoop
Copy link
Contributor

Merged!

Thanks for working on this @asonkeri !
Thanks for the review @lohxt1 !

Its-treason added a commit to Its-treason/bruno that referenced this pull request Jun 19, 2024
This was already implemented in upstream and now improved with
this usebruno#1819
jwetzell pushed a commit to jwetzell/bruno that referenced this pull request Aug 2, 2024
Request body json was not decommented if json parsing fails, which
would happen if variables are not quoted.

Fixes usebruno#888
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

Successfully merging this pull request may close these issues.

[bug] Decomment dosent work if varibles are used in http-request body
4 participants