A goa plugin package to generate multiple swagger specification files.
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.
This plugin can be used for i18n.
apidsl.Description(`{
"en": "This is an english description.",
"ja": "これは日本語の説明です。"
}`)
$ go get github.com/tchssk/multiswagger
$ goagen gen --pkg-path github.com/tchssk/multiswagger --design path/to/your/design
MIT License
Taichi Sasaki