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

Fix/bigint in response #2736

Merged
merged 1 commit into from
Aug 6, 2024
Merged

Conversation

Its-treason
Copy link
Member

@Its-treason Its-treason commented Jul 31, 2024

Description

Use lossless-json to parse the response data and then later stringily so information about BigInts are not lost.

Fixes: #1753

@Its-treason Its-treason force-pushed the fix/bigint-in-response branch from 64ae016 to 9f99a31 Compare July 31, 2024 22:33
@jwetzell
Copy link
Contributor

jwetzell commented Aug 1, 2024

Would be nice to throw it on the request side to to solve #2438 as well

@Its-treason
Copy link
Member Author

Would be nice to throw it on the request side to to solve #2438 as well

It looks like this is already working

image

@jwetzell
Copy link
Contributor

jwetzell commented Aug 1, 2024

I am not seeing that behavior, the latest version of bruno is still converting large numbers in JSON body to strings.

@helloanoop helloanoop merged commit 3e2a3b6 into usebruno:main Aug 6, 2024
3 checks passed
@helloanoop
Copy link
Contributor

Merged! Thanks for taking care of this @Its-treason !

@helloanoop
Copy link
Contributor

Hey @Its-treason

I reverted this merge since we are planning a release today.
I created #2767 to discuss the lossless-json stuff

It appears we may have to fork axios.

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.

BigInteger on response
3 participants