Render added/changed in info on request and response content types (#1876)
* Render added/changed in info on request and response content types Fixes: #1774 Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org> Co-authored-by: Kévin Commaille <76261501+zecakeh@users.noreply.github.com>
This commit is contained in:
parent
5fbfdd6821
commit
27e71fff10
5 changed files with 15 additions and 25 deletions
|
@ -50,13 +50,7 @@
|
|||
{{/*
|
||||
Show the content types and description.
|
||||
*/}}
|
||||
{{ $mimes := slice }}
|
||||
{{ $descriptions := slice }}
|
||||
{{ range $mime, $body := $request_body.content }}
|
||||
{{ $mimes = $mimes | append $mime }}
|
||||
{{ $descriptions = $descriptions | append $request_body.description }}
|
||||
{{ end }}
|
||||
{{ partial "openapi/render-content-type" (dict "content_types" $mimes "descriptions" $descriptions) }}
|
||||
{{ partial "openapi/render-content-type" (dict "content_types" $request_body.content) }}
|
||||
{{ end }}
|
||||
|
||||
<h3>Request body example</h3>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue