Reputation: 12157
I use PhpStorm for much of my development. When I edit my .jscsrc
file, if I enter something invalid, PhpStorm highlights it and warns me.
I have several JSON files that configure various parts of my site for different users/clients. I'd like to have a similar validation be run on my JSON, but I've been unable to track down how this is done.
How can I run a custom JSON schema validator on my JSON files in PhpStorm?
Upvotes: 3
Views: 3187
Reputation: 1864
JSON Schemas are available in PhpStorm 2016.1. You can map your own schemas on your JSON files and use autocomplete in the editor. Errors are shown as a colored strips when you type.
Upvotes: 1