usebruno / bruno

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

Json validation with substitution of boolean and integer values from vars not working #442

Open mark99i opened 1 year ago

mark99i commented 1 year ago

I use json body for post requests and vars to substitute changeable values when testing the api, everything is fine with inserting str, but when I try to insert int or bool or list, json validation stops working.

image (3) image3

DaPutzy commented 1 year ago

Because it took me a couple of minutes:

The issue is not that the generated json is invalid, but that the syntax highlighting breaks with the placeholder values. Would be neat if it could just highlight according to the generated json, but i guess thats easier said than done.