Azure / Azure/azure-rest-api-specs

Purview example Accounts_CreateOrUpdate.json is incorrect

Open
#23,289 1 comment 0 reactions 0 assignees View on GitHub
customer-reported Purview question Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

The request payload of `specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/Accounts_CreateOrUpdate.json` seems to be incorrect because it doesn't include the `identity` parameter. Resource creation fails without it.

The schema confirms this. `purview.json` has `identity` as part of `TrackedResource`, and `Account` has `TrackedResource` included:
```
"allOf": [
{
"$ref": "#/definitions/TrackedResource"
}
],
```

Contributor guide

Open the contributing guide

Research direction

Open specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/Accounts_CreateOrUpdate.json and compare its request payload with the identity definition in purview.json. Done means the example includes the required identity parameter and represents a request that can create the resource successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
api, cloud
Issue type
Bug
Difficulty
1/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.