@azure-tools/typespec-azure-resource-manager 0.74.0-dev.20 → 0.74.0-dev.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -86,7 +86,7 @@ Available ruleSets:
86
86
  | [`@azure-tools/typespec-azure-resource-manager/secret-prop`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/secret-prop) | RPC-v1-13: Check that property with names indicating sensitive information(e.g. contains auth, password, token, secret, etc.) are marked with @secret decorator. |
87
87
  | [`@azure-tools/typespec-azure-resource-manager/no-empty-model`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/no-empty-model) | ARM Properties with type:object that don't reference a model definition are not allowed. ARM doesn't allow generic type definitions as this leads to bad customer experience. |
88
88
  | [`@azure-tools/typespec-azure-resource-manager/no-empty-post-response`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/no-empty-post-response) | Synchronous ARM resource POST responses with status 200 must have a body. |
89
- | [`@azure-tools/typespec-azure-resource-manager/no-reserved-resource-property`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/no-reserved-resource-property) | Reserved property names (for example 'billingData') must not be present in a resource's property bag. The property name is matched case-insensitively. |
89
+ | [`@azure-tools/typespec-azure-resource-manager/no-reserved-resource-property`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/no-reserved-resource-property) | Reserved property names must not be present in a resource's property bag. The property name is matched case-insensitively. |
90
90
  | [`@azure-tools/typespec-azure-resource-manager/no-tags-on-proxy-resource`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/no-tags-on-proxy-resource) | Non-tracked ARM resources must not declare a tags property on the resource envelope. |
91
91
  | [`@azure-tools/typespec-azure-resource-manager/no-tenant-level-apis`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/no-tenant-level-apis) | ARM PUT operations whose resolved paths begin with '/providers' are not allowed, except paths ending in '/operations'. |
92
92
  | [`@azure-tools/typespec-azure-resource-manager/no-query-in-point-op`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/no-query-in-point-op) | Point operations must not declare query parameters beyond api-version. |
@@ -1 +1 @@
1
- {"version":3,"file":"no-reserved-resource-property.d.ts","sourceRoot":"","sources":["../../../src/rules/no-reserved-resource-property.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,8BAA8B;;yBAmCzC,CAAC"}
1
+ {"version":3,"file":"no-reserved-resource-property.d.ts","sourceRoot":"","sources":["../../../src/rules/no-reserved-resource-property.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,8BAA8B;;yBAmCzC,CAAC"}
@@ -8,6 +8,7 @@ import { getProperties } from "./utils.js";
8
8
  */
9
9
  const reservedProperties = new Map([
10
10
  ["billingData", "platform billing integration"],
11
+ ["systemData", "resource system metadata"],
11
12
  ]);
12
13
  /**
13
14
  * Case-insensitive lookup keyed by the lowercased reserved name. Both the reserved names and the
@@ -18,7 +19,7 @@ const reservedPropertiesByLowerName = new Map([...reservedProperties].map(([name
18
19
  export const noReservedResourcePropertyRule = createRule({
19
20
  name: "no-reserved-resource-property",
20
21
  docs: fileRef.fromPackageRoot("src/rules/no-reserved-resource-property.md"),
21
- description: "Reserved property names (for example 'billingData') must not be present in a resource's property bag. The property name is matched case-insensitively.",
22
+ description: "Reserved property names must not be present in a resource's property bag. The property name is matched case-insensitively.",
22
23
  severity: "warning",
23
24
  url: "https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/no-reserved-resource-property",
24
25
  messages: {
@@ -1 +1 @@
1
- {"version":3,"file":"no-reserved-resource-property.js","sourceRoot":"","sources":["../../../src/rules/no-reserved-resource-property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEhG,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,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B,GAAG,EAAE,kHAAkH;IACvH,QAAQ,EAAE;QACR,OAAO,EAAE,YAAY,CAAA,aAAa,cAAc,qFAAqF,QAAQ,GAAG;KACjJ;IACD,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE;gBACtB,MAAM,aAAa,GAAG,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;gBAC7D,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;oBAChC,OAAO;gBACT,CAAC;gBAED,MAAM,kBAAkB,GAAG,WAAW,CAAC,KAAK,EAAE,YAAY,CAAC,EAAE,IAAI,CAAC;gBAClE,IAAI,kBAAkB,KAAK,SAAS,IAAI,kBAAkB,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;oBAC5E,OAAO;gBACT,CAAC;gBAED,KAAK,MAAM,QAAQ,IAAI,aAAa,CAAC,kBAAkB,CAAC,EAAE,CAAC;oBACzD,MAAM,QAAQ,GAAG,6BAA6B,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;oBAChF,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;wBAC3B,OAAO,CAAC,gBAAgB,CAAC;4BACvB,MAAM,EAAE,EAAE,YAAY,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE;4BAChE,MAAM,EAAE,QAAQ;yBACjB,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-tools/typespec-azure-resource-manager",
3
- "version": "0.74.0-dev.20",
3
+ "version": "0.74.0-dev.21",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec Azure Resource Manager library",
6
6
  "homepage": "https://azure.github.io/typespec-azure",
@@ -47,15 +47,15 @@
47
47
  "pluralize": "^8.0.0"
48
48
  },
49
49
  "peerDependencies": {
50
- "@azure-tools/typespec-azure-core": "^0.73.0 || >= 0.74.0-dev.10",
50
+ "@azure-tools/typespec-azure-core": "^0.73.0 || >= 0.74.0-dev.11",
51
+ "@typespec/compiler": "^1.17.0",
51
52
  "@typespec/http": "^1.17.0",
52
53
  "@typespec/rest": "^0.87.0",
53
- "@typespec/compiler": "^1.17.0",
54
54
  "@typespec/openapi": "^1.17.0",
55
55
  "@typespec/versioning": "^0.87.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@azure-tools/typespec-azure-core": "^0.73.0 || >= 0.74.0-dev.10",
58
+ "@azure-tools/typespec-azure-core": "^0.73.0 || >= 0.74.0-dev.11",
59
59
  "@types/node": "^26.6.5",
60
60
  "@types/pluralize": "^0.0.33",
61
61
  "@vitest/coverage-v8": "^5.0.5",
@@ -63,12 +63,12 @@
63
63
  "rimraf": "^6.1.3",
64
64
  "typescript": "npm:@typescript/typescript6@~6.0.2",
65
65
  "vitest": "^5.0.5",
66
- "@typespec/compiler": "^1.17.0",
67
66
  "@typespec/http": "^1.17.0",
68
- "@typespec/versioning": "^0.87.0",
67
+ "@typespec/library-linter": "^0.87.0",
68
+ "@typespec/compiler": "^1.17.0",
69
69
  "@typespec/rest": "^0.87.0",
70
+ "@typespec/versioning": "^0.87.0",
70
71
  "@typespec/tspd": "^0.77.1",
71
- "@typespec/library-linter": "^0.87.0",
72
72
  "@typespec/openapi": "^1.17.0"
73
73
  },
74
74
  "scripts": {