Skip to content

Commit

Permalink
accept multiple lines description
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Feb 2, 2022
1 parent 60842be commit 108d33a
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 108d33a

Please sign in to comment.