Validating JSON file with JSON schema in Emacs using flymake/flycheck? [closed]
Asked Answered
I

2

6

Is it possible to validate JSON file using JSON schema in Emacs with flymake/flycheck? What would be the best validator to detect schema-related error and notify it to Emacs with appropriate error message and location?

Intra answered 15/10, 2013 at 20:46 Comment(2)
Flycheck does not include a syntax checker for schema-based JSON validation. You need to write your own…Antaeus
Maybe github.com/zaach/jsonlint or do you need more elaborate schema options?Stray
R
2

Theres is flymake-json, which uses jsonlint. It can be installed with package-install.

Ratha answered 13/8, 2015 at 6:57 Comment(1)
Not available in Emacs 26.3Cushman
C
1

Flycheck has support for JSON: https://www.flycheck.org/en/latest/languages.html#json
Also lsp-mode can be used with either flymake or flycheck: https://emacs-lsp.github.io/lsp-mode/page/lsp-json/

Cinchonism answered 31/12, 2020 at 12:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.