in packages/rulesets/src/spectral/functions/path-for-tracked-resource-types.ts [34:45]
function checkTrackedForPut(allParams: any, path: any) {
const bodyParam = allParams.find((p: any) => p.in === "body")
if (bodyParam) {
const properties = getProperties(bodyParam.schema)
if ("location" in properties) {
if (!verifyResourceGroupScope(path[1]) || !verifyNestResourceGroupScope(path[1])) {
return true
}
}
}
return false
}