@azure-tools/typespec-azure-resource-manager 0.73.0 → 0.74.0-dev.1

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
@@ -56,7 +56,7 @@ Available ruleSets:
56
56
  | [`@azure-tools/typespec-azure-resource-manager/arm-custom-resource-usage-discourage`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/arm-custom-resource-usage-discourage) | Verify the usage of @customAzureResource decorator. |
57
57
  | [`@azure-tools/typespec-azure-resource-manager/arm-feature-file-usage-discourage`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/arm-feature-file-usage-discourage) | Verify the usage of @featureFiles decorator. |
58
58
  | [`@azure-tools/typespec-azure-resource-manager/beyond-nesting-levels`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/beyond-nesting-levels) | Tracked Resources must use 3 or fewer levels of nesting. |
59
- | [`@azure-tools/typespec-azure-resource-manager/list-response-envelope`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/list-response-envelope) | ARM collection GET response models must declare only the `value` and `nextLink` properties. |
59
+ | [`@azure-tools/typespec-azure-resource-manager/list-response-envelope`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/list-response-envelope) | ARM list responses must use a value array and the standard nextLink envelope. |
60
60
  | [`@azure-tools/typespec-azure-resource-manager/no-query-in-collection`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/no-query-in-collection) | ARM collection GET operations must not declare query parameters beyond api-version and $filter. |
61
61
  | [`@azure-tools/typespec-azure-resource-manager/use-interface`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/use-interface) | Validate ARM Resource operations are defined inside an interface declaration. |
62
62
  | [`@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/no-resource-delete-operation) | Check for resources that must have a delete operation. |
@@ -1,4 +1,5 @@
1
1
  export declare const listResponseEnvelopeRule: import("@typespec/compiler").LinterRuleDefinition<"list-response-envelope", {
2
2
  readonly default: "Collection GET response models must declare exactly the `value` and `nextLink` properties.";
3
+ readonly valueArray: "Paged ARM list responses must declare a 'value' property of array type.";
3
4
  }, Record<string, never>>;
4
5
  //# sourceMappingURL=list-response-envelope.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-response-envelope.d.ts","sourceRoot":"","sources":["../../../src/rules/list-response-envelope.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,wBAAwB;;yBAuCnC,CAAC"}
1
+ {"version":3,"file":"list-response-envelope.d.ts","sourceRoot":"","sources":["../../../src/rules/list-response-envelope.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,wBAAwB;;;yBA8EnC,CAAC"}
@@ -1,30 +1,73 @@
1
- import { createRule, fileRef, getLocationContext, isArrayModelType, } from "@typespec/compiler";
1
+ import { createRule, fileRef, getLocationContext, getPagingOperation, getProperty, isArrayModelType, isList, walkPropertiesInherited, } from "@typespec/compiler";
2
2
  import { getHttpOperation } from "@typespec/http";
3
3
  import { getArmProviderNamespace } from "../namespace.js";
4
4
  export const listResponseEnvelopeRule = createRule({
5
5
  name: "list-response-envelope",
6
6
  docs: fileRef.fromPackageRoot("src/rules/list-response-envelope.md"),
7
- description: "ARM collection GET response models must declare only the `value` and `nextLink` properties.",
7
+ description: "ARM list responses must use a value array and the standard nextLink envelope.",
8
8
  severity: "warning",
9
9
  url: "https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/list-response-envelope",
10
10
  messages: {
11
11
  default: "Collection GET response models must declare exactly the `value` and `nextLink` properties.",
12
+ valueArray: "Paged ARM list responses must declare a 'value' property of array type.",
12
13
  },
13
14
  create(context) {
14
15
  return {
15
16
  operation: (operation) => {
16
- if (operation.namespace === undefined ||
17
- getArmProviderNamespace(context.program, operation.namespace) === undefined) {
17
+ const [httpOperation] = getHttpOperation(context.program, operation);
18
+ const collection = operation.namespace !== undefined &&
19
+ getArmProviderNamespace(context.program, operation.namespace) !== undefined &&
20
+ httpOperation.verb === "get" &&
21
+ isCollectionGetPath(httpOperation.path);
22
+ const [paging] = isList(context.program, operation)
23
+ ? getPagingOperation(context.program, operation)
24
+ : [];
25
+ const paged = getLocationContext(context.program, operation).type === "project" &&
26
+ paging?.output.nextLink !== undefined;
27
+ if (!collection && !paged) {
18
28
  return;
19
29
  }
20
- const [httpOperation] = getHttpOperation(context.program, operation);
21
- if (httpOperation.verb !== "get" || !isCollectionGetPath(httpOperation.path)) {
30
+ if (paged) {
31
+ for (const response of httpOperation.responses) {
32
+ if (response.statusCodes !== 200)
33
+ continue;
34
+ for (const { body } of response.responses) {
35
+ if (body === undefined)
36
+ continue;
37
+ const invalidValue = getInvalidValueTarget(operation, body.type);
38
+ if (invalidValue !== undefined) {
39
+ context.reportDiagnostic({
40
+ target: getDiagnosticTarget(context.program, operation, invalidValue),
41
+ messageId: "valueArray",
42
+ });
43
+ return;
44
+ }
45
+ if (body.type.kind === "Model") {
46
+ const invalidTargets = getInvalidTargets(body.type);
47
+ for (const invalidTarget of invalidTargets) {
48
+ context.reportDiagnostic({
49
+ target: getDiagnosticTarget(context.program, operation, invalidTarget),
50
+ });
51
+ }
52
+ if (invalidTargets.length > 0)
53
+ return;
54
+ }
55
+ }
56
+ }
22
57
  return;
23
58
  }
24
59
  const responseModel = get200ResponseModel(httpOperation.responses);
25
60
  if (responseModel === undefined) {
26
61
  return;
27
62
  }
63
+ const value = getProperty(responseModel, "value");
64
+ if (value !== undefined && (value.type.kind !== "Model" || !isArrayModelType(value.type))) {
65
+ context.reportDiagnostic({
66
+ target: getDiagnosticTarget(context.program, operation, value),
67
+ messageId: "valueArray",
68
+ });
69
+ return;
70
+ }
28
71
  for (const invalidTarget of getInvalidTargets(responseModel)) {
29
72
  context.reportDiagnostic({
30
73
  target: getDiagnosticTarget(context.program, operation, invalidTarget),
@@ -67,7 +110,7 @@ function getInvalidTargets(responseModel) {
67
110
  const invalidTargets = [];
68
111
  let hasValue = false;
69
112
  let hasNextLink = false;
70
- for (const property of responseModel.properties.values()) {
113
+ for (const property of walkPropertiesInherited(responseModel)) {
71
114
  if (property.name === "value") {
72
115
  hasValue = true;
73
116
  }
@@ -91,4 +134,12 @@ function getDiagnosticTarget(program, operation, invalidTarget) {
91
134
  }
92
135
  return operation.interface ?? operation;
93
136
  }
137
+ function getInvalidValueTarget(operation, type) {
138
+ if (type.kind !== "Model")
139
+ return operation;
140
+ const value = getProperty(type, "value");
141
+ if (value === undefined)
142
+ return type;
143
+ return value.type.kind === "Model" && isArrayModelType(value.type) ? undefined : value;
144
+ }
94
145
  //# sourceMappingURL=list-response-envelope.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-response-envelope.js","sourceRoot":"","sources":["../../../src/rules/list-response-envelope.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,UAAU,EACV,OAAO,EACP,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAA8B,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,MAAM,CAAC,MAAM,wBAAwB,GAAG,UAAU,CAAC;IACjD,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE,OAAO,CAAC,eAAe,CAAC,qCAAqC,CAAC;IACpE,WAAW,EACT,6FAA6F;IAC/F,QAAQ,EAAE,SAAS;IACnB,GAAG,EAAE,2GAA2G;IAChH,QAAQ,EAAE;QACR,OAAO,EACL,4FAA4F;KAC/F;IACD,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,SAAS,EAAE,CAAC,SAAS,EAAE,EAAE;gBACvB,IACE,SAAS,CAAC,SAAS,KAAK,SAAS;oBACjC,uBAAuB,CAAC,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,SAAS,CAAC,KAAK,SAAS,EAC3E,CAAC;oBACD,OAAO;gBACT,CAAC;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,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;IAED,OAAO,cAAc,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,IAAI,CAAC,WAAW,CAAC;QAC/D,CAAC,CAAC,CAAC,aAAa,CAAC;QACjB,CAAC,CAAC,cAAc,CAAC;AACrB,CAAC;AAED,SAAS,mBAAmB,CAC1B,OAAgB,EAChB,SAAoB,EACpB,aAAoC;IAEpC,IAAI,kBAAkB,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAClE,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,IAAI,kBAAkB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC9D,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,SAAS,CAAC,SAAS,IAAI,SAAS,CAAC;AAC1C,CAAC"}
1
+ {"version":3,"file":"list-response-envelope.js","sourceRoot":"","sources":["../../../src/rules/list-response-envelope.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,UAAU,EACV,OAAO,EACP,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,MAAM,EACN,uBAAuB,GACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAA8B,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,MAAM,CAAC,MAAM,wBAAwB,GAAG,UAAU,CAAC;IACjD,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE,OAAO,CAAC,eAAe,CAAC,qCAAqC,CAAC;IACpE,WAAW,EAAE,+EAA+E;IAC5F,QAAQ,EAAE,SAAS;IACnB,GAAG,EAAE,2GAA2G;IAChH,QAAQ,EAAE;QACR,OAAO,EACL,4FAA4F;QAC9F,UAAU,EAAE,yEAAyE;KACtF;IACD,MAAM,CAAC,OAAO;QACZ,OAA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,CAAC;QAC9D,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,SAAS,CAAC,SAAS,IAAI,SAAS,CAAC;AAC1C,CAAC;AAED,SAAS,qBAAqB,CAC5B,SAAoB,EACpB,IAAU;IAEV,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO;QAAE,OAAO,SAAS,CAAC;IAC5C,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACzC,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC;IACrC,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,IAAI,gBAAgB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC;AACzF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-tools/typespec-azure-resource-manager",
3
- "version": "0.73.0",
3
+ "version": "0.74.0-dev.1",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec Azure Resource Manager library",
6
6
  "homepage": "https://azure.github.io/typespec-azure",
@@ -47,29 +47,29 @@
47
47
  "pluralize": "^8.0.0"
48
48
  },
49
49
  "peerDependencies": {
50
- "@azure-tools/typespec-azure-core": "^0.73.0",
50
+ "@azure-tools/typespec-azure-core": "^0.73.0 || >= 0.74.0-dev.1",
51
51
  "@typespec/compiler": "^1.17.0",
52
52
  "@typespec/http": "^1.17.0",
53
- "@typespec/rest": "^0.87.0",
54
53
  "@typespec/openapi": "^1.17.0",
55
- "@typespec/versioning": "^0.87.0"
54
+ "@typespec/versioning": "^0.87.0",
55
+ "@typespec/rest": "^0.87.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@types/node": "^26.3.0",
58
+ "@azure-tools/typespec-azure-core": "^0.73.0 || >= 0.74.0-dev.1",
59
+ "@types/node": "^26.6.4",
59
60
  "@types/pluralize": "^0.0.33",
60
61
  "@vitest/coverage-v8": "^5.0.0",
61
62
  "@vitest/ui": "^5.0.0",
62
63
  "rimraf": "^6.1.3",
63
64
  "typescript": "npm:@typescript/typescript6@~6.0.2",
64
65
  "vitest": "^5.0.0",
65
- "@azure-tools/typespec-azure-core": "^0.73.0",
66
66
  "@typespec/compiler": "^1.17.0",
67
67
  "@typespec/http": "^1.17.0",
68
68
  "@typespec/library-linter": "^0.87.0",
69
- "@typespec/rest": "^0.87.0",
70
69
  "@typespec/tspd": "^0.77.1",
71
- "@typespec/openapi": "^1.17.0",
72
- "@typespec/versioning": "^0.87.0"
70
+ "@typespec/rest": "^0.87.0",
71
+ "@typespec/versioning": "^0.87.0",
72
+ "@typespec/openapi": "^1.17.0"
73
73
  },
74
74
  "scripts": {
75
75
  "clean": "rimraf ./dist ./temp",