Skip to content

Commit a238db4

Browse files
committed
Remove text_message from campaign request
1 parent 6922cdf commit a238db4

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/Messaging/Request/Message/MessageContentRequest.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@
1010

1111
#[OA\Schema(
1212
schema: 'MessageContentRequest',
13-
required: ['subject', 'text', 'text_message', 'footer'],
13+
required: ['subject', 'text', 'footer'],
1414
properties: [
1515
new OA\Property(property: 'subject', type: 'string', example: 'Campaign Subject'),
1616
new OA\Property(property: 'text', type: 'string', example: 'Full text content'),
17-
new OA\Property(property: 'text_message', type: 'string', example: 'Short text message'),
1817
new OA\Property(property: 'footer', type: 'string', example: 'Unsubscribe link here'),
1918
],
2019
type: 'object'
@@ -27,9 +26,6 @@ class MessageContentRequest implements RequestDtoInterface
2726
#[Assert\NotBlank]
2827
public string $text;
2928

30-
#[Assert\NotBlank]
31-
public string $textMessage;
32-
3329
#[Assert\NotBlank]
3430
public string $footer;
3531

@@ -38,7 +34,6 @@ public function getDto(): MessageContentDto
3834
return new MessageContentDto(
3935
subject: $this->subject,
4036
text: $this->text,
41-
textMessage: $this->textMessage,
4237
footer: $this->footer,
4338
);
4439
}

0 commit comments

Comments
 (0)