Description
If I run the following command:
m365 spo contenttype set --webUrl '<url>' --id '<some-id>' --listTitle '<some-title>' --Description '' --debug
The command throws a 400 exception.
The reason this happens is because the Description option is translated to a boolean when calling the API:
"data": {
"Description": true
}
Steps to reproduce
- Update a content type with a description
- Now try to empty it by running the same command with an empty value in string quotes.
Expected results
The property is emptied.
Actual results
The command crashes.
CLI for Microsoft 365 version
5.8 (next)
nodejs version
16.15.0
Operating system (environment)
Windows
Shell
PowerShell
Additional Info
This issue does not occur on bash.
Description
If I run the following command:
The command throws a 400 exception.
The reason this happens is because the Description option is translated to a boolean when calling the API:
Steps to reproduce
Expected results
The property is emptied.
Actual results
The command crashes.
CLI for Microsoft 365 version
5.8 (next)
nodejs version
16.15.0
Operating system (environment)
Windows
Shell
PowerShell
Additional Info
This issue does not occur on bash.