Yaak Logo
Yaak
Feedback/Validate JSON Body

Validate JSON Body

Federico ·a year ago
ReleasedFeature RequestBugImprovement

When sending json body, Yaak does’t validate if the json is a valid one.

Image comparing with Insomnia

Mac

Comments (8)

Sign in to leave a comment.

Gregory Schier

This is something I would like to do eventually. Unfortunately, it’s a bit hard to validate JSON because it has to account for any template syntax that might be included.

I’ll see if I can get something working for the next release!

Dhruvil Kakadiya

Can I pick this?

Dhruvil Kakadiya
Dhruvil Kakadiya

@Greg Schier was checking your PR, for json linting. You replaced the template syntac with “1”, I am thinking about replacing it with the actual value to get accurate parsing.

Gregory Schier

This solution seems good enough for now. It’s hard to trust the rendered value because it could be different each render, or different between preview and send renders.

Perhaps, instead, there could be a warning somewhere in the response panel if a request was sent with invalid JSON body?

Dhruvil Kakadiya

Warning in response panel looks good solution to me. Will check around that.

Gregory Schier
Gregory Schier
Type to search feedback...