Skip to content

A goa plugin package to generate multiple swagger specification files

License

Notifications You must be signed in to change notification settings

tchssk/multiswagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A goa plugin package to generate multiple swagger specification files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages