<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kyagi</author_name>
  <author_url>https://blog.hatena.ne.jp/kyagi/</author_url>
  <blog_title>blog.ayakumo.net</blog_title>
  <blog_url>https://blog.ayakumo.net/</blog_url>
  <categories>
  </categories>
  <description>Zod の Schema Validation でリテラルな文字列の数パターンのみを受け付けるようにする z.enum() にリテラルな文字列の配列を渡すことでその配列のみを有効な入力になるように制限することができます。 (悪いね、今日はカツオ(bonito) は入っていないんだ) import { z } from 'zod'; const menuAvailableToday = ['tuna', 'mackerel', 'eel', 'squid', 'flounder', 'yellowtail', 'amberjack']; const orderAcceptable = z.obj…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.ayakumo.net%2Fentry%2F2024%2F02%2F29%2F080849&quot; title=&quot;TypeScript w/ Zod でリテラルな文字列の配列を型として扱う - blog.ayakumo.net&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>2024-02-29 08:08:49</published>
  <title>TypeScript w/ Zod でリテラルな文字列の配列を型として扱う</title>
  <type>rich</type>
  <url>https://blog.ayakumo.net/entry/2024/02/29/080849</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
