Skip to content

Commit bfdaa4b

Browse files
committed
Fix: template request content type
1 parent ccfc48e commit bfdaa4b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Messaging/Request/CreateTemplateRequest.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@
1616
required: ['title'],
1717
properties: [
1818
new OA\Property(property: 'title', type: 'string', example: 'Newsletter Template'),
19-
new OA\Property(property: 'content', type: 'string', example: '<html><body>[CONTENT]</body></html>'),
19+
new OA\Property(
20+
property: 'content',
21+
type: 'string',
22+
example: '<html><body>[CONTENT]</body></html>',
23+
nullable: true
24+
),
2025
new OA\Property(property: 'text', type: 'string', example: '[CONTENT]'),
2126
new OA\Property(
2227
property: 'file',
@@ -52,7 +57,7 @@ class CreateTemplateRequest implements RequestInterface
5257
public string $title;
5358

5459
#[ContainsPlaceholder]
55-
public string $content;
60+
public ?string $content = null;
5661

5762
#[ContainsPlaceholder]
5863
public ?string $text = null;

0 commit comments

Comments
 (0)