Validate the data passed to workflow API or event properties using JSON schemas to catch payload mismatch errors at API level.
order_id
is required and must be a string.amount
is optional, but if provided, it must be an integer.order_id
is missing, not a string, or if amount
is not an integer → API call fails.