Skip to content
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

Output more meaningful error messages when JSON description do not conform to the expected schemas. #15

Open
elavoie opened this issue Feb 17, 2016 · 0 comments

Comments

@elavoie
Copy link
Member

elavoie commented Feb 17, 2016

The current JSON validator can be pretty cryptic when a description does not conform to an expected schema. Ex:

[
  {
    "field": "data",
    "message": "no (or more than one) schemas match",
    "value": {
      "type": "platform",
      "short-name": "Hanfeng’s MacBook Pro",
      "name": "Darwin-15.3.0-x86_64-i386-64bit",
      "cpu": "Intel Core i5",
      "gpu": "Intel Iris Graphics 6100",
      "memory": "8 GB",
      "os": "Mac OS X 10.11.3",
      "supported-languages": [
        "x86_64"
      ],
      "supported-formats": []
    }
  }
]

Rather than just bailing out, a second phase should check for common mistakes users make when writing description files, such as invalid short names, etc.

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

No branches or pull requests

1 participant