Repository: deepmap/oapi-codegen
Pull request #120 (2020-01-17 15:03:08)

Fix newline of interface comments
Signed-off-by: Simon Rüegg <simon.ruegg@vshn.ch>


Patch:
diff --git a/examples/petstore-expanded/chi/api/petstore.gen.go b/examples/petstore-expanded/chi/api/petstore.gen.go
index a741ca3..bbb58ff 100644
--- a/examples/petstore-expanded/chi/api/petstore.gen.go
+++ b/examples/petstore-expanded/chi/api/petstore.gen.go
@@ -63,13 +63,13 @@ type AddPetJSONBody NewPet
 type AddPetJSONRequestBody AddPetJSONBody
 
 type ServerInterface interface {
-	//  (GET /pets)
+	// Returns all pets (GET /pets)
 	FindPets(w http.ResponseWriter, r *http.Request)
-	//  (POST /pets)
+	// Creates a new pet (POST /pets)
 	AddPet(w http.ResponseWriter, r *http.Request)
-	//  (DELETE /pets/{id})
+	// Deletes a pet by ID (DELETE /pets/{id})
 	DeletePet(w http.ResponseWriter, r *http.Request)
-	//  (GET /pets/{id})
+	// Returns a pet by ID (GET /pets/{id})
 	FindPetById(w http.ResponseWriter, r *http.Request)
 }
 
@@ -199,34 +199,34 @@ func HandlerFromMux(si ServerInterface, r *chi.Mux) http.Handler {
 // Base64 encoded, gzipped, json marshaled Swagger object
 var swaggerSpec = []string{
 
-	"H4sIAAAAAAAC/+RXW28jx9H9K4X+vsfJUNk18sCnyKs1QCDeVSI7L149lLqLZBl9GXVXUysI/O9B9Qxv",
-	"IleGkSAwkBdeZvpy6tSp6tMvxqYwpEhRipm/mGLXFLD9/JhzyvpjyGmgLEztsU2O9NtRsZkH4RTNfBwM",
-	"7V1nlikHFDM3HOX9O9MZeR5o/EsrymbbmUCl4OqbC+1e76cWyRxXZrvtTKbHypmcmf9ipg13w++3nflE",
-	"T7ck57gjhgvbfcJAkJYga4KB5HzDzgiuzuf99Dy8Pe8V0La7wpuwofefl2b+y4v5/0xLMzf/NzskYjZl",
-	"YTbFsu1eB8PuHNLPkR8rAbtTXMfJ+Mt3F5LxCik7c7+93+pjjss0pjwK2oabArI3c4MDC2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SVqgSWp+Xx6SLkFUDo6JlfJNfSgtRGwPXAin4vvgOpZtYySg6/qQ3Vn",
+	"D3drLOT9WBgD5Sm80dzkJYElVssPdSQc9/voutP4DflJOt5Qztidb611Auy6QyFGflj38LPAQN5TFCp6",
+	"bgypVNJK2hdRD0oF7qtAi27P5f5J+7Qak10DcrBFrNGCZC7SjqUNC1IPP9RiCUhaN3CVD1WgnaJY8pS5",
+	"wRn9uw8I6paKzTy2hoIRAq40ZfKTWj38tY6hIXnVbVSP6uidI5Tu0HwAq9UiGVdO9hzTnswxNZlDNapZ",
+	"VGDg2B2hTIUbufAecFEMlqU6VqilIFTZ+2wSctzpjLS2Xw93p8I05iaMQybhGk4612ia2p34W1tv/0WP",
+	"OB0Z2nG3cGZufuDo9Hxpx0ZWAiiXNoOcHxaCK+37sGQvlOFha3QUMHPzWClvj+e8rjOnw8MSfaFumiHb",
+	"mCIU2qF0OVSNFzBn3Or/Itt2Duq00uadc0gBv3LQvl7DA2UdcDKV6qXhzO1w+wZIz4HldZS/Oa7u7jW+",
+	"DNp8Wjpvbm72cxHFcZ4bBj+NFrNfi2J+vsbDa8PeOOm9YGZ3MSENJLAHM85PS6xefhee12CMY/+VjWuk",
+	"r4M2X+3S45rOlBoC5u2VEUOxDalcGUbeZ0JpQ12kJ127n9ba5KOn9Ihdl+jA5316Indh53dO3TxJS0W+",
+	"T277L2NhP3lf0nBHoqZD5/TrAPvMYpIr7f5Jz/ymVf57rHEheLvfJtbZM7vdaBFPcuUFbbyusYXjyre3",
+	"GnhAbcRpdM3iFkrVnK545LZFjzZ5tectbrWpDKO2E5apoeiIfewn7C6U/lYvuf62ddlLvrvMWoGMKNx/",
+	"kpC3BzGaCltY3Cq81185zhU76Li4/dYB9f124X6XXksSu/63yfU/W8YvFB3Vb0sob/Yynb3p71/a+5NX",
+	"X31/3d3v/hEAAP//81bN0nkSAAA=",
 }
 
 // GetSwagger returns the Swagger specification corresponding to the generated code
diff --git a/examples/petstore-expanded/echo/api/petstore-server.gen.go b/examples/petstore-expanded/echo/api/petstore-server.gen.go
index 559b5de..998cc55 100644
--- a/examples/petstore-expanded/echo/api/petstore-server.gen.go
+++ b/examples/petstore-expanded/echo/api/petstore-server.gen.go
@@ -17,12 +17,16 @@ import (
 
 // ServerInterface represents all server handlers.
 type ServerInterface interface {
+	// Returns all pets
 	// (GET /pets)
 	FindPets(ctx echo.Context, params FindPetsParams) error
+	// Creates a new pet
 	// (POST /pets)
 	AddPet(ctx echo.Context) error
+	// Deletes a pet by ID
 	// (DELETE /pets/{id})
 	DeletePet(ctx echo.Context, id int64) error
+	// Returns a pet by ID
 	// (GET /pets/{id})
 	FindPetById(ctx echo.Context, id int64) error
 }
@@ -131,34 +135,34 @@ func RegisterHandlers(router interface {
 // Base64 encoded, gzipped, json marshaled Swagger object
 var swaggerSpec = []string{
 
-	"H4sIAAAAAAAC/+RXW28jx9H9K4X+vsfJUNk18sCnyKs1QCDeVSI7L149lLqLZBl9GXVXUysI/O9B9Qxv",
-	"IleGkSAwkBdeZvpy6tSp6tMvxqYwpEhRipm/mGLXFLD9/JhzyvpjyGmgLEztsU2O9NtRsZkH4RTNfBwM",
-	"7V1nlikHFDM3HOX9O9MZeR5o/EsrymbbmUCl4OqbC+1e76cWyRxXZrvtTKbHypmcmf9ipg13w++3nflE",
-	"T7ck57gjhgvbfcJAkJYga4KB5HzDzgiuzuf99Dy8Pe8V0La7wpuwofefl2b+y4v5/0xLMzf/NzskYjZl",
-	"YTbFsu1eB8PuHNLPkR8rAbtTXMfJ+Mt3F5LxCik7c7+93+pjjss0pjwK2oabArI3c4MDC2H4a3nC1Ypy",
-	"z8l0E8XmbnwG17cL+IkwmM7UrJPWIsN8Njuas+1eBXENBcPgqU2WNQrUQgVQgymSMgEWwAj0dRwmCRyF",
-	"FItkFIIlodRMBTg2Cj4PFHWl9/0VlIEsL9li26ozni3FQgdtmOsB7ZrgXX91ArnMZ7Onp6ce2+s+5dVs",
-	"mltmf1t8+Pjp7uOf3vVX/VqC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gnaJY8pS5",
+	"wRn9uw8I6paKzTy2hoIRAq40ZfKTWj38tY6hIXnVbVSP6uidI5Tu0HwAq9UiGVdO9hzTnswxNZlDNapZ",
+	"VGDg2B2hTIUbufAecFEMlqU6VqilIFTZ+2wSctzpjLS2Xw93p8I05iaMQybhGk4612ia2p34W1tv/0WP",
+	"OB0Z2nG3cGZufuDo9Hxpx0ZWAiiXNoOcHxaCK+37sGQvlOFha3QUMHPzWClvj+e8rjOnw8MSfaFumiHb",
+	"mCIU2qF0OVSNFzBn3Or/Itt2Duq00uadc0gBv3LQvl7DA2UdcDKV6qXhzO1w+wZIz4HldZS/Oa7u7jW+",
+	"DNp8Wjpvbm72cxHFcZ4bBj+NFrNfi2J+vsbDa8PeOOm9YGZ3MSENJLAHM85PS6xefhee12CMY/+VjWuk",
+	"r4M2X+3S45rOlBoC5u2VEUOxDalcGUbeZ0JpQ12kJ127n9ba5KOn9Ihdl+jA5316Indh53dO3TxJS0W+",
+	"T277L2NhP3lf0nBHoqZD5/TrAPvMYpIr7f5Jz/ymVf57rHEheLvfJtbZM7vdaBFPcuUFbbyusYXjyre3",
+	"GnhAbcRpdM3iFkrVnK545LZFjzZ5tectbrWpDKO2E5apoeiIfewn7C6U/lYvuf62ddlLvrvMWoGMKNx/",
+	"kpC3BzGaCltY3Cq81185zhU76Li4/dYB9f124X6XXksSu/63yfU/W8YvFB3Vb0sob/Yynb3p71/a+5NX",
+	"X31/3d3v/hEAAP//81bN0nkSAAA=",
 }
 
 // GetSwagger returns the Swagger specification corresponding to the generated code
diff --git a/examples/petstore-expanded/petstore-expanded.yaml b/examples/petstore-expanded/petstore-expanded.yaml
index 12a2442..bf1187a 100644
--- a/examples/petstore-expanded/petstore-expanded.yaml
+++ b/examples/petstore-expanded/petstore-expanded.yaml
@@ -16,6 +16,7 @@ servers:
 paths:
   /pets:
     get:
+      summary: Returns all pets
       description: |
         Returns all pets from the system that the user has access to
         Nam sed condimentum est. Maecenas tempor sagittis sapien, nec rhoncus sem sagittis sit amet. Aenean at gravida augue, ac iaculis sem. Curabitur odio lorem, ornare eget elementum nec, cursus id lectus. Duis mi turpis, pulvinar ac eros ac, tincidunt varius justo. In hac habitasse platea dictumst. Integer at adipiscing ante, a sagittis ligula. Aenean pharetra tempor ante molestie imperdiet. Vivamus id aliquam diam. Cras quis velit non tortor eleifend sagittis. Praesent at enim pharetra urna volutpat venenatis eget eget mauris. In eleifend fermentum facilisis. Praesent enim enim, gravida ac sodales sed, placerat id erat. Suspendisse lacus dolor, consectetur non augue vel, vehicula interdum libero. Morbi euismod sagittis libero sed lacinia.
@@ -55,7 +56,8 @@ paths:
               schema:
                 $ref: '#/components/schemas/Error'
     post:
-      description: Creates a new pet in the store.  Duplicates are allowed
+      summary: Creates a new pet
+      description: Creates a new pet in the store. Duplicates are allowed
       operationId: addPet
       requestBody:
         description: Pet to add to the store
@@ -79,7 +81,8 @@ paths:
                 $ref: '#/components/schemas/Error'
   /pets/{id}:
     get:
-      description: Returns a user based on a single ID, if the user does not have access to the pet
+      summary: Returns a pet by ID
+      description: Returns a pet based on a single ID
       operationId: find pet by id
       parameters:
         - name: id
@@ -103,6 +106,7 @@ paths:
               schema:
                 $ref: '#/components/schemas/Error'
     delete:
+      summary: Deletes a pet by ID
       description: deletes a single pet based on the ID supplied
       operationId: deletePet
       parameters:
diff --git a/pkg/codegen/templates/server-interface.tmpl b/pkg/codegen/templates/server-interface.tmpl
index 484e5b7..7380091 100644
--- a/pkg/codegen/templates/server-interface.tmpl
+++ b/pkg/codegen/templates/server-interface.tmpl
@@ -1,6 +1,6 @@
 // ServerInterface represents all server handlers.
 type ServerInterface interface {
-{{range .}}{{.SummaryAsComment -}}
+{{range .}}{{.SummaryAsComment }}
 // ({{.Method}} {{.Path}})
 {{.OperationId}}(ctx echo.Context{{genParamArgs .PathParams}}{{if .RequiresParamObject}}, params {{.OperationId}}Params{{end}}) error
 {{end}}
diff --git a/pkg/codegen/templates/templates.gen.go b/pkg/codegen/templates/templates.gen.go
index 37efc4d..1046593 100644
--- a/pkg/codegen/templates/templates.gen.go
+++ b/pkg/codegen/templates/templates.gen.go
@@ -719,7 +719,7 @@ type {{$opid}}{{.NameTag}}RequestBody {{.TypeDef}}
 `,
 	"server-interface.tmpl": `// ServerInterface represents all server handlers.
 type ServerInterface interface {
-{{range .}}{{.SummaryAsComment -}}
+{{range .}}{{.SummaryAsComment }}
 // ({{.Method}} {{.Path}})
 {{.OperationId}}(ctx echo.Context{{genParamArgs .PathParams}}{{if .RequiresParamObject}}, params {{.OperationId}}Params{{end}}) error
 {{end}}


Test patch:
diff --git a/internal/test/client/client.gen.go b/internal/test/client/client.gen.go
index 00a72ee..5965965 100644
--- a/internal/test/client/client.gen.go
+++ b/internal/test/client/client.gen.go
@@ -828,18 +828,25 @@ func ParseGetJsonWithTrailingSlashResponse(rsp *http.Response) (*getJsonWithTrai
 
 // ServerInterface represents all server handlers.
 type ServerInterface interface {
+
 	// (POST /with_both_bodies)
 	PostBoth(ctx echo.Context) error
+
 	// (GET /with_both_responses)
 	GetBoth(ctx echo.Context) error
+
 	// (POST /with_json_body)
 	PostJson(ctx echo.Context) error
+
 	// (GET /with_json_response)
 	GetJson(ctx echo.Context) error
+
 	// (POST /with_other_body)
 	PostOther(ctx echo.Context) error
+
 	// (GET /with_other_response)
 	GetOther(ctx echo.Context) error
+
 	// (GET /with_trailing_slash/)
 	GetJsonWithTrailingSlash(ctx echo.Context) error
 }
diff --git a/internal/test/components/components.gen.go b/internal/test/components/components.gen.go
index 618c6fb..a49fad1 100644
--- a/internal/test/components/components.gen.go
+++ b/internal/test/components/components.gen.go
@@ -1060,8 +1060,10 @@ func ParseBodyWithAddPropsResponse(rsp *http.Response) (*bodyWithAddPropsRespons
 
 // ServerInterface represents all server handlers.
 type ServerInterface interface {
+
 	// (GET /params_with_add_props)
 	ParamsWithAddProps(ctx echo.Context, params ParamsWithAddPropsParams) error
+
 	// (POST /params_with_add_props)
 	BodyWithAddProps(ctx echo.Context) error
 }
diff --git a/internal/test/issues/issue-52/issue.gen.go b/internal/test/issues/issue-52/issue.gen.go
index 6df59c3..f7a0d68 100644
--- a/internal/test/issues/issue-52/issue.gen.go
+++ b/internal/test/issues/issue-52/issue.gen.go
@@ -286,6 +286,7 @@ func ParseExampleGetResponse(rsp *http.Response) (*exampleGetResponse, error) {
 
 // ServerInterface represents all server handlers.
 type ServerInterface interface {
+
 	// (GET /example)
 	ExampleGet(ctx echo.Context) error
 }
diff --git a/internal/test/parameters/parameters.gen.go b/internal/test/parameters/parameters.gen.go
index f1845be..835b987 100644
--- a/internal/test/parameters/parameters.gen.go
+++ b/internal/test/parameters/parameters.gen.go
@@ -2190,40 +2190,58 @@ func ParseGetSimplePrimitiveResponse(rsp *http.Response) (*getSimplePrimitiveRes
 
 // ServerInterface represents all server handlers.
 type ServerInterface interface {
+
 	// (GET /contentObject/{param})
 	GetContentObject(ctx echo.Context, param ComplexObject) error
+
 	// (GET /cookie)
 	GetCookie(ctx echo.Context, params GetCookieParams) error
+
 	// (GET /header)
 	GetHeader(ctx echo.Context, params GetHeaderParams) error
+
 	// (GET /labelExplodeArray/{.param*})
 	GetLabelExplodeArray(ctx echo.Context, param []int32) error
+
 	// (GET /labelExplodeObject/{.param*})
 	GetLabelExplodeObject(ctx echo.Context, param Object) error
+
 	// (GET /labelNoExplodeArray/{.param})
 	GetLabelNoExplodeArray(ctx echo.Context, param []int32) error
+
 	// (GET /labelNoExplodeObject/{.param})
 	GetLabelNoExplodeObject(ctx echo.Context, param Object) error
+
 	// (GET /matrixExplodeArray/{.id*})
 	GetMatrixExplodeArray(ctx echo.Context, id []int32) error
+
 	// (GET /matrixExplodeObject/{.id*})
 	GetMatrixExplodeObject(ctx echo.Context, id Object) error
+
 	// (GET /matrixNoExplodeArray/{.id})
 	GetMatrixNoExplodeArray(ctx echo.Context, id []int32) error
+
 	// (GET /matrixNoExplodeObject/{.id})
 	GetMatrixNoExplodeObject(ctx echo.Context, id Object) error
+
 	// (GET /passThrough/{param})
 	GetPassThrough(ctx echo.Context, param string) error
+
 	// (GET /queryForm)
 	GetQueryForm(ctx echo.Context, params GetQueryFormParams) error
+
 	// (GET /simpleExplodeArray/{param*})
 	GetSimpleExplodeArray(ctx echo.Context, param []int32) error
+
 	// (GET /simpleExplodeObject/{param*})
 	GetSimpleExplodeObject(ctx echo.Context, param Object) error
+
 	// (GET /simpleNoExplodeArray/{param})
 	GetSimpleNoExplodeArray(ctx echo.Context, param []int32) error
+
 	// (GET /simpleNoExplodeObject/{param})
 	GetSimpleNoExplodeObject(ctx echo.Context, param Object) error
+
 	// (GET /simplePrimitive/{param})
 	GetSimplePrimitive(ctx echo.Context, param int32) error
 }
diff --git a/internal/test/schemas/schemas.gen.go b/internal/test/schemas/schemas.gen.go
index c17f9b8..b8fe16f 100644
--- a/internal/test/schemas/schemas.gen.go
+++ b/internal/test/schemas/schemas.gen.go
@@ -477,10 +477,13 @@ func ParseIssue9Response(rsp *http.Response) (*issue9Response, error) {
 
 // ServerInterface represents all server handlers.
 type ServerInterface interface {
+
 	// (GET /issues/30/{fallthrough})
 	Issue30(ctx echo.Context, pFallthrough string) error
+
 	// (GET /issues/41/{1param})
 	Issue41(ctx echo.Context, n1param N5StartsWithNumber) error
+
 	// (GET /issues/9)
 	Issue9(ctx echo.Context, params Issue9Params) error
 }
diff --git a/pkg/codegen/codegen_test.go b/pkg/codegen/codegen_test.go
index cbe45e3..f534d9e 100644
--- a/pkg/codegen/codegen_test.go
+++ b/pkg/codegen/codegen_test.go
@@ -47,6 +47,11 @@ func TestExamplePetStoreCodeGeneration(t *testing.T) {
 	// Check that the property comments were generated
 	assert.Contains(t, code, "// Unique id of the pet")
 
+	// Check that the summary comment contains newlines
+	assert.Contains(t, code, `// Deletes a pet by ID
+	// (DELETE /pets/{id})
+`)
+
 	// Make sure the generated code is valid:
 	linter := new(lint.Linter)
 	problems, err := linter.Lint("test.gen.go", []byte(code))