From 81b841f19d92820532f3583c0f904ae66b59ccc3 Mon Sep 17 00:00:00 2001 From: Antoine GIRARD Date: Mon, 11 Jun 2018 11:05:22 +0200 Subject: [PATCH] Fix raw parameters https://swagger.io/docs/specification/2-0/describing-request-body/ --- routers/api/v1/misc/markdown.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/routers/api/v1/misc/markdown.go b/routers/api/v1/misc/markdown.go index fd7d1489b..633dff98e 100644 --- a/routers/api/v1/misc/markdown.go +++ b/routers/api/v1/misc/markdown.go @@ -62,9 +62,12 @@ func MarkdownRaw(ctx *context.APIContext) { // --- // summary: Render raw markdown as HTML // parameters: - // - name: body - // in: body - // type: string + // - name: body + // in: body + // description: Request body to render + // required: true + // schema: + // type: string // consumes: // - text/plain // produces: