Azure / Azure/azure-sdk-tools

[LintDiff][False positive] Invalid validation on ResourceMustReferenceCommonTypes

Open
#6,131 2 comments 0 reactions 2 assignees Claimed by @bdefoy View on GitHub
ARM bug Central-EngSys Spec PR Tools
Dominant language
C#
Stars
135
Forks
260
Avg merge
3d 1h
Merged PRs (30d)
143

Description

**Describe the bug**
Alert on
> Resource definition 'ManagedClusterSnapshot' must reference the common types resource definition for ProxyResource or TrackedResource. Location: [aks/preview/2023-05-02-preview/managedClusters.json#L7004](https://github.com/Azure/azure-rest-api-specs-pr/blob/f57ac63916b73bcaca2c0315aec63f09cbcd5606/specification/containerservice/resource-manager/Microsoft.ContainerService/aks/preview/2023-05-02-preview/managedClusters.json#L7004)

is invalid, as the model has been declared with
```
"allOf": [
{
"$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource"
}
],
```

**To Reproduce**
See [check result](https://github.com/Azure/azure-rest-api-specs-pr/pull/12431/checks?check_run_id=13257670578).

**Expected behavior**
Should not raise alert on this.

**Screenshots**
See [check result](https://github.com/Azure/azure-rest-api-specs-pr/pull/12431/checks?check_run_id=13257670578).

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.