Azure / Azure/azure-rest-api-specs
[ResourceMover]If it is a bool type value, should not return the string value
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description
e.g. :
https://github.com/Azure/azure-rest-api-specs/blob/8716084c689b0b5c1061d5d162460cf5779a76a8/specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveResources_Get.json#L22

Here is a RestApi response, if the property is absolute is bool, it should directly return bool as same above.
The wrong return type will cause format issue in DotNet MGMT SDK:
```
System.InvalidOperationException :
The requested operation requires an element of type 'Boolean', but the target element has type 'String'.
```
Contributor guide
Research direction
Start with specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2021-08-01/examples/MoveResources_Get.json at the linked property, then trace the ResourceMover specification that defines its response type. Done means the absolute property is returned as a Boolean rather than a string, avoiding the reported .NET SDK format error.
Written by the indexing model from the issue text.
Assessment
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100