Skip to content

Commit

Permalink
Merge pull request #155 from shogo82148/enhance-description
Browse files Browse the repository at this point in the history
accept multiple lines description
  • Loading branch information
shogo82148 committed Feb 3, 2022
2 parents f10e133 + 108d33a commit 8a04ba3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion design/apidsl/api.go
Expand Up @@ -97,7 +97,8 @@ func Version(ver string) {

// Description sets the definition description.
// Description can be called inside API, Resource, Action, MediaType, Attribute, Response or ResponseTemplate
func Description(d string) {
func Description(lines ...string) {
d := strings.Join(lines, "\n")
switch def := dslengine.CurrentDefinition().(type) {
case *design.APIDefinition:
def.Description = d
Expand Down

0 comments on commit 8a04ba3

Please sign in to comment.