Skip to content

Unisay/intellij-swagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intellij Swagger Plugin (defunct)

Intellij Idea plugin that provides support for http://swagger.io

Current state

Based on the sources from the Ansible/YAML plugin, that is in turn based on Neon plugin. It contains a JFlex grammar (neon.flex) that is used to generate Lexer and a hand-written YAML Parser (NeonParser.java) The Lexer is used for highlighting (via FlexAdapter from Intellij). The parser extends Intellij's PsiParser interface and is used for parsing and error highlighting.

Unfortunately a limited subset of YAML functionality is implemented by both Lexer and Parser. This makes it unusable for the Swagger YAML as it requires more than supported currently: for example block-style literals containing Markdown markup are not understood.

YAML Schema:

http://yaml.org/spec/1.2/spec.html#Schema

Reference BNF for Haskell:

http://hackage.haskell.org/package/YamlReference-0.9.3/src/Text/Yaml/Reference.bnf

Grammar-Kit plugin for Intellij:

ANTLR support in jetbrains IDEs:

P.S.

http://leifw.wickland.net/2011/03/weekend-hacking-failure-net-parser-for.html

About

Intellij Idea plugin that provides support for swagger.io

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt

Stars

4 stars

Watchers

8 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors