spec/schemas/my_schema.rb in deimos-ruby-1.15.1 vs spec/schemas/my_schema.rb in deimos-ruby-1.16.0
- old
+ new
@@ -41,14 +41,14 @@
def namespace
'com.my-namespace'
end
# @override
- def to_h
+ def as_json(_opts={})
{
'test_id' => @test_id,
'some_int' => @some_int,
- 'payload_key' => @payload_key&.to_h
+ 'payload_key' => @payload_key&.as_json
}
end
end
end