<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>syossan</author_name>
  <author_url>https://blog.hatena.ne.jp/syossan/</author_url>
  <blog_title>生涯未熟</blog_title>
  <blog_url>https://syossan.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>Protocol BuffersでSwaggerを吐くことが出来ますが、その際にParametersの個々のfieldにdescriptionをどうやったら付けれるのかよく分からなかったのでメモ。 どういうこと？ これを追加したかった。 やり方 至極簡単で、OpenAPIのfieldを使ってゴニョゴニョすればいい。 例えば以下のような感じで、protocファイルに記述する。 message HogeRequest { uint64 id = 1 [(grpc.gateway.protoc_gen_swagger.options.openapiv2_field) = {description: …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsyossan.hateblo.jp%2Fentry%2F2019%2F03%2F11%2F192705&quot; title=&quot;Protocol Buffersが出力するSwaggerのParameter descriptionを記述する方法 - 生涯未熟&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/s/syossan/20190311/20190311192111.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-03-11 19:27:05</published>
  <title>Protocol Buffersが出力するSwaggerのParameter descriptionを記述する方法</title>
  <type>rich</type>
  <url>https://syossan.hateblo.jp/entry/2019/03/11/192705</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
