Skip to content

esc-emacs/openapi-yaml-mode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenAPI YAML Mode

An Emacs major mode for OpenAPI YAML files. OpenAPI YAML mode supports OpenAPI 2 and 3. OpenAPI 2 files are identical to the Swagger 2 files.

OpenAPI YAML mode is based on yaml-mode, but uses a different strategy for syntax highlight that takes into consideration the OpenAPI specification.

OpenAPI YAML mode is under initial development and is not yet stable.

Features

  • Syntax highlight based on the OpenAPI specification (version 2 and 3).
  • Basic completion with completion-at-point. Works with Company through the CAPF back-end.
  • IMenu for paths and operationIds.

Complementary packages

Customizations

Use the yaml-mode syntax highlight

The defcustom variable openapi-yaml-use-yaml-mode-syntax-highlight can be used to disable the OpenAPI syntax highlight of OpenAPI YAML Mode. The default syntax highlight of yaml-mode is used instead.

(setq openapi-yaml-use-yaml-mode-syntax-highlight t)

About

An Emacs major mode for OpenAPI 3 and Swagger 2 YAML files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Emacs Lisp 100.0%