7aitsev / jvs

JSON Validation Service
MIT License
0 stars 0 forks source link

Wrong resource name #3

Closed SemenMartynov closed 6 years ago

SemenMartynov commented 6 years ago
$ curl -s --data-binary @bad.json http://localhost
{
  "errorCode": 1,
  "errorMessage": "Unterminated array",
  "errorPlace": "at line 59 column 28 path $.web-app.servlet[4]",
  "resource": "json",
  "requestId": 2
}

Resource should be bad.json

ghost commented 6 years ago

There is now way to find out the name of a resource file if it is not in the url ok

SemenMartynov commented 6 years ago

Yes I see, I need to send files like this:

$ curl --upload-file bad.json http://localhost
{
  "errorCode": 1,
  "errorMessage": "Unterminated array",
  "errorPlace": "at line 59 column 28 path $.web-app.servlet[4]",
  "resource": "bad.json",
  "requestId": 7
}