You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a proxy resource (such as inherited from common type ProxyResource) which has a top-level property location:
model ProxyAccount is ProxyResource<ProxyAccountProperties> {
name: string;
location: ProxyAccountLocation;
}
union ProxyAccountLocation {
Global: "global",
string,
}
@armResourceOperations
interface ProxyAccounts {
get is ArmResourceRead<ProxyAccount>;
create is ArmResourceCreateOrReplaceAsync<ProxyAccount>;
update is ArmResourcePatchAsync<ProxyAccount, ProxyAccountProperties>;
delete is ArmResourceDeleteWithoutOkAsync<ProxyAccount>;
listByResourceGroup is ArmResourceListByParent<ProxyAccount>;
listBySubscription is ArmListBySubscription<ProxyAccount>;
}
Describe the bug
To Reproduce
Given a proxy resource (such as inherited from common type ProxyResource) which has a top-level property
location
:What results in the following swagger:
triggers the following Linter rule
RequestSchemaForTrackedResourcesMustHaveTags
Steps to reproduce the behavior:
Expected behavior
The rule should not infer the resource's type (tracked vs proxy) by the presence of a top-level property
location
.Instead, it should check whether the resource inherits a common type first, and only if doesn't then fall back to the current logic.
The text was updated successfully, but these errors were encountered: