[英]JSON Schema Validation in PhpStorm
I use PhpStorm for much of my development.我在大部分开发过程中都使用 PhpStorm。 When I edit my
.jscsrc
file, if I enter something invalid, PhpStorm highlights it and warns me.当我编辑我的
.jscsrc
文件时,如果我输入了无效的内容,PhpStorm 会突出显示它并警告我。
I have several JSON files that configure various parts of my site for different users/clients.我有几个 JSON 文件,它们为不同的用户/客户端配置我网站的各个部分。 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.
我想在我的 JSON 上运行类似的验证,但我一直无法追踪这是如何完成的。
How can I run a custom JSON schema validator on my JSON files in PhpStorm?如何在 PhpStorm 中的 JSON 文件上运行自定义 JSON 模式验证器?
JSON Schemas are available in PhpStorm 2016.1 . JSON 模式在PhpStorm 2016.1中可用。 You can map your own schemas on your JSON files and use autocomplete in the editor.
您可以在 JSON 文件上映射您自己的架构,并在编辑器中使用自动完成功能。 Errors are shown as a colored strips when you type.
键入时,错误会显示为彩色条。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.