How to: Conditional validation with built-ins
Im trying to validate an embedded field "payment_method" when a certain param/attribute has a specific value. I've tried to do this:
But when I omit the "payment_method" param when sending a request to create, I get a "Invalid value provided for payment_method: is invalid." I've tried
But when I omit the "payment_method" param when sending a request to create, I get a "Invalid value provided for payment_method: is invalid." I've tried
argument_equals, attribute_equals and none seem to work