An Emacs Flycheck checker for OpenAPI 2 and Swagger files that uses swagger-cli. YAML files and JSON files are both supported.
This project is archived and will no longer be maintained.
flycheck-swagger-cli was an initial implementation and might not be stable.
swagger-cli must be installed.
npm install -g swagger-cli
The checker can be activating by requiring this package.
(require 'flycheck-swagger-cli)
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 flycheck-swagger-cli-predicate-regexp-match-limit
can be used to change the limit. That could be necessary for YAML files with long initial comments.