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?
Validating JSON file with JSON schema in Emacs using flymake/flycheck? [closed]
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
Theres is flymake-json, which uses jsonlint. It can be installed with package-install
.
Not available in Emacs 26.3 –
Cushman
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/
© 2022 - 2024 — McMap. All rights reserved.