1010
1111#[OA \Schema(
1212 schema: 'MessageFormatRequest ' ,
13- required: ['html_formated ' , 'send_format ' , ' format_options ' ],
13+ required: ['html_formated ' , 'send_format ' ],
1414 properties: [
1515 new OA \Property (property: 'html_formated ' , type: 'boolean ' , example: true ),
1616 new OA \Property (
1919 enum: ['html ' , 'text ' , 'invite ' ],
2020 example: 'html '
2121 ),
22- new OA \Property (
23- property: 'format_options ' ,
24- type: 'array ' ,
25- items: new OA \Items (type: 'string ' , enum: ['text ' , 'html ' , 'pdf ' ]),
26- example: ['html ' ]
27- ),
2822 ],
2923 type: 'object '
3024)]
@@ -36,18 +30,11 @@ class MessageFormatRequest implements RequestDtoInterface
3630 #[Assert \Choice(['html ' , 'text ' , 'invite ' ])]
3731 public string $ sendFormat ;
3832
39- #[Assert \All([
40- new Assert \Type ('string ' ),
41- new Assert \Choice (['text ' , 'html ' , 'pdf ' ]),
42- ])]
43- public array $ formatOptions ;
44-
4533 public function getDto (): MessageFormatDto
4634 {
4735 return new MessageFormatDto (
4836 htmlFormated: $ this ->htmlFormated ,
4937 sendFormat: $ this ->sendFormat ,
50- formatOptions: $ this ->formatOptions ,
5138 );
5239 }
5340}
0 commit comments