Skip to content

Commit

Permalink
fix(api): header.key and header.value not required ZMS-116 (#582)
Browse files Browse the repository at this point in the history
* remove unnecessary required() that brakes the e-mail send

* fix Header object as well, remove unnecessary required
  • Loading branch information
NickOvt authored Dec 19, 2023
1 parent 89dd3cf commit 29cffe0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/schemas/request/messages-schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ const AddressOptionalName = Joi.object({
const AddressOptionalNameArray = Joi.array().items(AddressOptionalName);

const Header = Joi.object({
key: Joi.string().empty('').max(255).required().description("Header key ('X-Mailer')"),
key: Joi.string().empty('').max(255).description("Header key ('X-Mailer')"),
value: Joi.string()
.empty('')
.max(100 * 1024)
.required()
.description("Header value ('My Awesome Mailing Service')")
}).$_setFlag('objectName', 'Header');

Expand Down

0 comments on commit 29cffe0

Please sign in to comment.