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

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

License

Notifications You must be signed in to change notification settings

magoyette/openapi-yaml-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 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.

This project is archived and will no longer be maintained. OpenAPI YAML mode has some unfixed issues, so it might not be very stable.

OpenAPI YAML mode is based on yaml-mode, but uses a different strategy for syntax highlight that takes into consideration the OpenAPI specification. It depends on many regexes to do some custom syntax highlight based on the contents of a typical OpenAPI file, but that approach is quite limited.

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