Due to an error in the Messages API spec for the WhatsApp Template type message, the SDK tested for the presence of the policy property in the whatsapp object of the WhatsApp Template message type. The spec incorrectly had this property as required, but it is in fact optional. See this JIRA ticket for additional context
This PR updated the Ruby SDK to remove a check that validates for the presence of that property.
What this PR does
Updates the Messaging::Channels::WhatsApp#verify_message method to remove a validation check for the required presence of opts[:whatsapp][:policy]
Removes the test associated with this validation logic from Messaging::Channels::WhatsAppTest
Reason for this PR
Due to an error in the Messages API spec for the WhatsApp Template type message, the SDK tested for the presence of the
policy
property in thewhatsapp
object of the WhatsApp Template message type. The spec incorrectly had this property as required, but it is in fact optional. See this JIRA ticket for additional contextThis PR updated the Ruby SDK to remove a check that validates for the presence of that property.
What this PR does
Messaging::Channels::WhatsApp#verify_message
method to remove a validation check for the required presence ofopts[:whatsapp][:policy]
Messaging::Channels::WhatsAppTest