Skip to content

Bug report: outlook mail send wrong validation message for bodyContentType option #3833

@milanholemans

Description

@milanholemans

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions