<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>beatdjam</author_name>
  <author_url>https://blog.hatena.ne.jp/beatdjam/</author_url>
  <blog_title>B-Teck!</blog_title>
  <blog_url>https://blog.beatdjam.com/</blog_url>
  <categories>
    <anon>Tips</anon>
  </categories>
  <description>YAMLで書いてるSwaggerの定義に実装済みのAPIを記述したいが、 レスポンスの定義を手で書くのはしんどい…みたいなときに、 実際に返却しているJSONから生成できれば便利では！？と思ってやってみた。 TL;DR 手順 Quicktypeのインストール json2yamlのインストール 実行例 生成元のjson yaml変換後のSchema TL;DR QuicktypeでJSONからJSON Schemaを生成 json2yamlでJSON Schemaをyamlに変換 Swaggerで読み取れて便利 手順 不要そうなところは各自適宜飛ばしてください。 Quicktypeのインストール…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.beatdjam.com%2Fentry%2F2019%2F04%2F30%2F100000&quot; title=&quot;JSONからJSON Schemaを生成してYAMLに変換する - B-Teck!&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-04-30 10:00:00</published>
  <title>JSONからJSON Schemaを生成してYAMLに変換する</title>
  <type>rich</type>
  <url>https://blog.beatdjam.com/entry/2019/04/30/100000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
