Skip to content

Intellij Idea plugin that provides support for swagger.io

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt
Notifications You must be signed in to change notification settings

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

Watchers

Forks

Releases

No releases published

Packages

No packages published