A goa plugin package to generate multiple swagger specification files
Go
Latest commit 7ad4f69 Oct 17, 2016 @tchssk Update README
Permalink
Failed to load latest commit information.
LICENSE Add LICENSE Oct 17, 2016
README.md Update README Oct 18, 2016
generator.go Initial commit Oct 17, 2016
generator_test.go Initial commit Oct 17, 2016

README.md

Multiswagger

A goa plugin package to generate multiple swagger specification files.

CircleCI license

Overview

Multiswagger is compatible with internal swagger generator of goagen (goagen swagger) but it expects apidsl.Description() in design to be JSON object like below.

apidsl.Description(`{
    "key1": "value1",
    "key2": "value2"
}`)

Multiswagger generates description: value1 as swagger.key1.json and swagger.key1.yaml, description: value2 as swagger.key2.json and swagger.key2.yaml.

Use case

This plugin can be used for i18n.

apidsl.Description(`{
    "en": "This is an english description.",
    "ja": "これは日本語の説明です。"
}`)

Installation

$ go get github.com/tchssk/multiswagger

Usage

$ goagen gen --pkg-path github.com/tchssk/multiswagger --design path/to/your/design

License

MIT License

Author

Taichi Sasaki