You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please correct me if I'm wrong but it seems that we're already handling this correctly in here. I was able to get a passing test (without any code changes) at the ProducerTest level such as
context'with a symbolized payload'doit'should publish the message'doMyProducer.publish_list([{test_id: 'foo',some_int: 123},{test_id: 'bar',some_int: 124}])expect(MyProducer.topic).tohave_sent(anything)endend
Is there any other publish interface that ultimately doesn't rely on this one?
Hmm... I'm trying to remember the specific use case that was the problem here. I know I've had issues where I passed in symbols and it expected strings in a test... but I don't recall what exactly. Maybe ask people in #ruby-guild to see if anyone can pinpoint the problem case? @eduardopoleoflipp
All actions involving payloads should not care whether the strings are keys or symbols.
E.g. passing a symbolized-key hash into
publish
should not result in Avro validation errors claiming that values don't exist.The text was updated successfully, but these errors were encountered: