improved

Input validation made more accurate for create email campaigns API

Route: https://developers.sendinblue.com/reference#createemailcampaign-1
Following rule, apart from existing ones, will also be followed for the validation of the request parameters from now on:

  • If a field name is specified in the input, it will be validated against the correct value and type. If the value is found to be in invalid format, invalid_parameter error will be thrown. If the value is empty, missing_paramter error will be thrown.