flycheck-swagger-tools
An Emacs Flycheck checker for Swagger YAML and JSON files that uses swagger-tools.
This repository is archived. The development of swagger-tools appears interrupted.
flycheck-swagger-cli can be used instead. swagger-cli supports both OpenAPI 2 and 3.
Configuration
swagger-tools must be installed.
npm install -g swagger-tools
The checker can be activating by requiring this package.
(require 'flycheck-swagger-tools)
By default, only the first 4000 characters of a file are scanned to find the swagger 2.0 element. To avoid stack overflow in Emacs multi-line regex, this limit is necessary. The defcustom swagger-tools-predicate-regexp-match-limit can be used to change the limit. That could be necessary for YAML files with long initial comments.