<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ippachi1218</author_name>
  <author_url>https://blog.hatena.ne.jp/ippachi1218/</author_url>
  <blog_title>Journey</blog_title>
  <blog_url>https://ippachi.hatenablog.com/</blog_url>
  <categories>
    <anon>ruby</anon>
    <anon>hanami</anon>
    <anon>DDD</anon>
  </categories>
  <description>結論 class User &lt; Hanami::Entity attributes do # one attribute :post, Types::Entity(Post) # many attribute :posts, Types::Collection(Post) end end 経緯 HanamiでDDDっぽく書くために https://guides.hanamirb.org/entities/custom-schema/ に書いてあるとおりに、厳密に属性のチェックをしていました。 class User &lt; Hanami::Entity attributes do attribute…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fippachi.hatenablog.com%2Fentry%2F2020%2F07%2F11%2F004650&quot; title=&quot;HanamiのEntityのschemaに別Entityを使用する方法 - Journey&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>2020-07-11 00:46:50</published>
  <title>HanamiのEntityのschemaに別Entityを使用する方法</title>
  <type>rich</type>
  <url>https://ippachi.hatenablog.com/entry/2020/07/11/004650</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
