Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Swagger description for service methods using proto comments. #134

Merged
merged 11 commits into from
May 17, 2016
Merged
Prev Previous commit
Next Next commit
Swagger: schema objects can have titles, too.
  • Loading branch information
ivucica committed May 7, 2016
commit 0d71621a108f0f98fbcf41d5c31233628fe53cff
1 change: 1 addition & 0 deletions protoc-gen-swagger/genswagger/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ type swaggerSchemaObject struct {
Default string `json:"default,omitempty"`

Description string `json:"description,omitempty"`
Title string `json:"title,omitempty"`
}

// http://swagger.io/specification/#referenceObject
Expand Down