From 5b2970d9046fb0d153f705cf16435c563d467003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jules=20H=C3=A9zard?= Date: Wed, 25 Oct 2023 23:21:20 +0200 Subject: [PATCH] Escape description of params to allow multiline --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index db1e458..40baa7f 100644 --- a/main.go +++ b/main.go @@ -476,7 +476,7 @@ func getParams(path *openapi3.PathItem, httpMethod string) []*Param { Name: p.Value.Name, CLIName: cliName, GoName: toGoName("param "+cliName, false), - Description: description, + Description: escapeString(description), In: p.Value.In, Required: p.Value.Required, Type: t,