Azure / Azure/azure-rest-api-specs
Invalid id format in RecoveryServices-privateLinkResources
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 3d 37m
- Merged PRs (30d)
- 446
Description
In the 2023-04-01 version of RecoveryServices.
Path:
https://github.com/Azure/azure-rest-api-specs/blob/a87d4d8ae70c7603c35a911f27efd774bd0d9ff8/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/vaults.json#L21
The response of `GET` operation is not correctly formatted.
The second resource's id is a number, a valid resource id should start with `/subscriptions/` or `/providers/`
Sample response content:

Contributor guide
Research direction
Start with the 2023-04-01 RecoveryServices definition in specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/vaults.json at the linked line. Inspect the GET response schema for RecoveryServices-privateLinkResources, especially the second resource's id, and compare it with the stated valid resource ID format. Done means the specification no longer permits or produces the numeric id shown in the sample response.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100