Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

An Emacs Flycheck checker for OpenAPI 2 and Swagger files that uses swagger-cli.

License

Notifications You must be signed in to change notification settings

magoyette/flycheck-swagger-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

flycheck-swagger-cli

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.

Configuration

swagger-cli must be installed.

npm install -g swagger-cli

The checker can be activating by requiring this package.

(require 'flycheck-swagger-cli)

Customizations

Swagger files with long initial comments

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.

About

An Emacs Flycheck checker for OpenAPI 2 and Swagger files that uses swagger-cli.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published