<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Response bodies | go-openapi codescan</title><link>https://go-openapi.github.io/codescan/shaping-the-output/response-bodies/index.html</link><description>Describe a concrete response payload without a dedicated swagger:response
struct — declare the body inline on the route, or shadow a generic envelope's
payload with a doc-only struct.</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://go-openapi.github.io/codescan/shaping-the-output/response-bodies/index.xml" rel="self" type="application/rss+xml"/><item><title>Inline response bodies</title><link>https://go-openapi.github.io/codescan/shaping-the-output/response-bodies/inline-response-bodies/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://go-openapi.github.io/codescan/shaping-the-output/response-bodies/inline-response-bodies/index.html</guid><description>Declare a route's responses inline with the body: sub-language — a primitive,
an array, or a model $ref — without writing a swagger:response struct.</description></item><item><title>Documenting generic responses</title><link>https://go-openapi.github.io/codescan/shaping-the-output/response-bodies/documenting-generic-responses/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://go-openapi.github.io/codescan/shaping-the-output/response-bodies/documenting-generic-responses/index.html</guid><description>Your handlers return one generic envelope with an interface{} payload, but you
want the spec to describe a concrete type per operation. Doc-only structs that
embed the envelope and shadow the payload field close the gap.</description></item></channel></rss>