<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bufferings</author_name>
  <author_url>https://blog.hatena.ne.jp/bufferings/</author_url>
  <blog_title>Mitsuyuki.Shiiba</blog_title>
  <blog_url>https://bufferings.hatenablog.com/</blog_url>
  <categories>
    <anon>TypeScript</anon>
    <anon>Hono</anon>
  </categories>
  <description>と思ってたらふつうにできた。 どういうこと？ Honoでサーバーサイドアプリケーションを書くときに、ミドルウェアとしてZod OpenAPI Honoを使うと、ZodのスキーマからOpenAPIのスキーマが生成できて便利。 例えばこういうZodのスキーマを用意して import { z } from &quot;@hono/zod-openapi&quot;; export const CreateUserInput = z .object({ name: z.string().openapi({ example: &quot;John Doe&quot;, }), age: z.number().openapi({ example…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbufferings.hatenablog.com%2Fentry%2F2026%2F01%2F12%2F233317&quot; title=&quot;Zod OpenAPI Honoで.openapi()を使わずにスキーマ定義を書きたい！ - Mitsuyuki.Shiiba&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>2026-01-12 23:33:17</published>
  <title>Zod OpenAPI Honoで.openapi()を使わずにスキーマ定義を書きたい！</title>
  <type>rich</type>
  <url>https://bufferings.hatenablog.com/entry/2026/01/12/233317</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
