Azure / Azure/azure-rest-api-specs

[ResourceMover]If it is a bool type value, should not return the string value

Open
#23,951 2 comments 0 reactions 0 assignees View on GitHub
Migrate Service Attention
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

![image](https://github.com/Azure/azure-rest-api-specs/assets/61542202/676ba038-3bb1-4c53-83f9-3671ae9b882c)
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.