Skip to content

JSON syntax validator in body editor does not recognize invalid data type #7987

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

Closed
vdespa opened this issue Feb 3, 2020 · 2 comments · Fixed by #8601
Closed

JSON syntax validator in body editor does not recognize invalid data type #7987

vdespa opened this issue Feb 3, 2020 · 2 comments · Fixed by #8601

Comments

@vdespa
Copy link

vdespa commented Feb 3, 2020

Describe the bug
When creating a request with a JSON payload, the editor for JSON deems as valid a data type that is not valid.

To Reproduce
Steps to reproduce the behavior:

  1. Create a POST request, with the RAW body and TYPE JSON
  2. Paste
{
	"foo": 007
}
  1. See that the validator does not indicate any errors

Expected behavior
The JSON validator should kick in and notice that 007 is not valid.

Screenshots
image

image

App information (please complete the following information):

  • App Type Native App
  • Postman Version 7.16.0
  • OS: masOS
@vdespa vdespa changed the title JSON syntax validator in body editor does not recognize bad data type JSON syntax validator in body editor does not recognize invalid data type Feb 3, 2020
@kamalaknn
Copy link
Member

@vdespa We've updated the editor for request body in the latest version. You should now see validation errors for these inputs 😄

@vdespa
Copy link
Author

vdespa commented Jun 9, 2020

The error is now "Expected comma" which is still confusing but at least there is an error. Thanks for looking into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants