Matt Grande
Matt Grande

Reputation: 12157

JSON Schema Validation in PhpStorm

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.

See? It shows that it's unknown!

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

Answers (1)

Alex Gusev
Alex Gusev

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.

enter image description here

Upvotes: 1

Related Questions