usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
22.39k stars 1.04k forks source link

BigInteger interpretation #1402

Open MeskaKeyne opened 6 months ago

MeskaKeyne commented 6 months ago

Hello

it seems that the BigInteger are misinterpreted by Bruno

In postman it works

Its-treason commented 6 months ago

Do you mean in a JSON response, like in #869 or in vars? Like in #1000

MeskaKeyne commented 6 months ago

yes its same problem #869

helloanoop commented 6 months ago

Yes, in case of bigint. This happens due to the typecasting process. The digits get lost during serialisation and deserialisation process. This a bug and needs to be fixed.

Also, There is a standardization effort underway for bru lang I am taking care of this edge case in the parser as seen here: https://github.com/brulang/bru-js/blob/main/src/parse.js#L52-L54

Will get this fixed as soon as I can in the current version of bru lang.

cc @halostatue