lib/sober_swag/serializer/meta.rb in sober_swag-0.10.0 vs lib/sober_swag/serializer/meta.rb in sober_swag-0.11.0

- old
+ new

@@ -18,15 +18,19 @@ def meta(hash) self.class.new(base, metadata.merge(hash)) end + ## + # Delegates to `base`, adds metadata, pumbs identifiers def lazy_type - @base.lazy_type.meta(**metadata) + @base.lazy_type.meta(**metadata).tap { |t| t.identifier(@base.identifier) } end + ## + # Delegates to `base`, adds metadata, plumbs identifiers def type - @base.type.meta(**metadata) + @base.type.meta(**metadata).tap { |t| t.identifier(@base.identifier) } end def finalize_lazy_type! @base.finalize_lazy_type! end