<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>podhmo</author_name>
  <author_url>https://blog.hatena.ne.jp/podhmo/</author_url>
  <blog_title>podhmo's diary</blog_title>
  <blog_url>https://pod.hatenablog.com/</blog_url>
  <categories>
    <anon>memo</anon>
    <anon>marshmallow</anon>
    <anon>python</anon>
  </categories>
  <description>はじめに こういうJSONを許したい。 { &quot;left&quot;: { &quot;name&quot;: &quot;foo&quot;, &quot;value&quot;: 100, } } あるいはこう。 { &quot;right&quot;: { &quot;name&quot;: &quot;foo&quot;, &quot;value&quot;: 100.0, } } left,rightというfieldの内どちらか1つだけ値が入るデータをvalidとしたい。例えば以下はダメ。 {} これもだめ。 { &quot;left&quot;: { &quot;name&quot;: &quot;foo&quot;, &quot;value&quot;: 100, }, &quot;right&quot;: { &quot;name&quot;: &quot;foo&quot;, &quot;value&quot;: 100.0, } } 2つのleft,rightというfieldの構…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpod.hatenablog.com%2Fentry%2F2017%2F10%2F10%2F235243&quot; title=&quot;marshmallowで相互排他的なfieldを定義する方法 - podhmo&amp;#39;s diary&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>2017-10-10 23:52:43</published>
  <title>marshmallowで相互排他的なfieldを定義する方法</title>
  <type>rich</type>
  <url>https://pod.hatenablog.com/entry/2017/10/10/235243</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
