Description
When passing an invalid bodyContentType option we're getting a wrong validation message stating our bodyContents option is wrong.
This line should be changed
|
return `${args.options.bodyContents} is not a valid value for the bodyContents option. Allowed values are Text|HTML`; |
bodyContents should be bodyContentType
Steps to reproduce
Run the m365 outlook mail send command and use as --bodyContentType a value like invalid
Expected results
A valid error message saying which option is wrong.
Actual results
'Invalid' is not a valid value for bodyContents option. Allowed values are Text|HTML
Diagnostics
No response
CLI for Microsoft 365 version
v5.9.0
nodejs version
v16.13.2
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
No response
Additional Info
No response
Description
When passing an invalid
bodyContentTypeoption we're getting a wrong validation message stating ourbodyContentsoption is wrong.This line should be changed
cli-microsoft365/src/m365/outlook/commands/mail/mail-send.ts
Line 103 in c3fe008
bodyContentsshould bebodyContentTypeSteps to reproduce
Run the
m365 outlook mail sendcommand and use as--bodyContentTypea value likeinvalidExpected results
A valid error message saying which option is wrong.
Actual results
'Invalid' is not a valid value for bodyContents option. Allowed values are Text|HTML
Diagnostics
No response
CLI for Microsoft 365 version
v5.9.0
nodejs version
v16.13.2
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
No response
Additional Info
No response