@azure-tools/typespec-azure-resource-manager 0.74.0-dev.12 → 0.74.0-dev.14
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 +2 -1
- package/dist/src/linter.d.ts.map +1 -1
- package/dist/src/linter.js +2 -0
- package/dist/src/linter.js.map +1 -1
- package/dist/src/rules/arm-common-types-version.d.ts +2 -2
- package/dist/src/rules/arm-common-types-version.d.ts.map +1 -1
- package/dist/src/rules/arm-common-types-version.js +31 -11
- package/dist/src/rules/arm-common-types-version.js.map +1 -1
- package/dist/src/rules/lro-missing-polling-metadata.d.ts +4 -0
- package/dist/src/rules/lro-missing-polling-metadata.d.ts.map +1 -0
- package/dist/src/rules/lro-missing-polling-metadata.js +59 -0
- package/dist/src/rules/lro-missing-polling-metadata.js.map +1 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ Available ruleSets:
|
|
|
35
35
|
| [`@azure-tools/typespec-azure-resource-manager/arm-no-path-casing-conflicts`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/arm-no-path-casing-conflicts) | Operation paths must be unique when compared case-insensitively. |
|
|
36
36
|
| [`@azure-tools/typespec-azure-resource-manager/scope-path-segment-casing`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/scope-path-segment-casing) | ARM paths must use the canonical subscriptions and resourceGroups segment casing. |
|
|
37
37
|
| [`@azure-tools/typespec-azure-resource-manager/no-override-props`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/no-override-props) | Disallow redefining properties already defined in a base type. |
|
|
38
|
-
| [`@azure-tools/typespec-azure-resource-manager/arm-common-types-version`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/arm-common-types-version) | Specify the ARM common-types version using @armCommonTypesVersion.
|
|
38
|
+
| [`@azure-tools/typespec-azure-resource-manager/arm-common-types-version`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/arm-common-types-version) | Specify the latest ARM common-types version using @armCommonTypesVersion. |
|
|
39
39
|
| [`@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/arm-delete-operation-response-codes) | Ensure delete operations have the appropriate status codes. |
|
|
40
40
|
| [`@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/arm-put-operation-response-codes) | Ensure put operations have the appropriate status codes. |
|
|
41
41
|
| [`@azure-tools/typespec-azure-resource-manager/arm-post-operation-response-codes`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/arm-post-operation-response-codes) | Ensure post operations have the appropriate status codes. |
|
|
@@ -67,6 +67,7 @@ Available ruleSets:
|
|
|
67
67
|
| [`@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-action-verb`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/arm-resource-invalid-action-verb) | Actions must be HTTP Post or Get operations. |
|
|
68
68
|
| [`@azure-tools/typespec-azure-resource-manager/improper-subscription-list-operation`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/improper-subscription-list-operation) | Tenant and Extension resources should not define a list by subscription operation. |
|
|
69
69
|
| [`@azure-tools/typespec-azure-resource-manager/lro-location-header`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/lro-location-header) | A 202 response should include a Location response header. |
|
|
70
|
+
| [`@azure-tools/typespec-azure-resource-manager/lro-missing-polling-metadata`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/lro-missing-polling-metadata) | ARM operations indicating asynchronous processing must have native polling metadata. |
|
|
70
71
|
| [`@azure-tools/typespec-azure-resource-manager/list-operation-missing-pageable`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/list-operation-missing-pageable) | ARM GET operations on list paths must define TypeSpec paging metadata. |
|
|
71
72
|
| [`@azure-tools/typespec-azure-resource-manager/missing-x-ms-identifiers`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/missing-x-ms-identifiers) | Array properties should describe their identifying properties with x-ms-identifiers. Decorate the property with @OpenAPI.extension("x-ms-identifiers", #[id-prop]) where "id-prop" is a list of the names of identifying properties in the item type. |
|
|
72
73
|
| [`@azure-tools/typespec-azure-resource-manager/no-response-body`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/no-response-body) | Check that 202, 204 and DELETE 200 responses have no body, and other success (2xx) responses have a body except for HEAD and POST 200. |
|
package/dist/src/linter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linter.d.ts","sourceRoot":"","sources":["../../src/linter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"linter.d.ts","sourceRoot":"","sources":["../../src/linter.ts"],"names":[],"mappings":"AAmIA,eAAO,MAAM,OAAO,+CAYlB,CAAC"}
|
package/dist/src/linter.js
CHANGED
|
@@ -28,6 +28,7 @@ import { improperSubscriptionListOperationRule } from "./rules/improper-subscrip
|
|
|
28
28
|
import { listOperationMissingPageableRule } from "./rules/list-operation-missing-pageable.js";
|
|
29
29
|
import { listResponseEnvelopeRule } from "./rules/list-response-envelope.js";
|
|
30
30
|
import { lroLocationHeaderRule } from "./rules/lro-location-header.js";
|
|
31
|
+
import { lroMissingPollingMetadataRule } from "./rules/lro-missing-polling-metadata.js";
|
|
31
32
|
import { lroResponseMismatchRule } from "./rules/lro-response-mismatch.js";
|
|
32
33
|
import { missingXmsIdentifiersRule } from "./rules/missing-x-ms-identifiers.js";
|
|
33
34
|
import { noEmptyModel } from "./rules/no-empty-model.js";
|
|
@@ -101,6 +102,7 @@ const rules = [
|
|
|
101
102
|
armResourceInvalidActionVerbRule,
|
|
102
103
|
improperSubscriptionListOperationRule,
|
|
103
104
|
lroLocationHeaderRule,
|
|
105
|
+
lroMissingPollingMetadataRule,
|
|
104
106
|
listOperationMissingPageableRule,
|
|
105
107
|
missingXmsIdentifiersRule,
|
|
106
108
|
noResponseBodyRule,
|
package/dist/src/linter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linter.js","sourceRoot":"","sources":["../../src/linter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AACpG,OAAO,EAAE,uCAAuC,EAAE,MAAM,qDAAqD,CAAC;AAC9G,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;AACnG,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,6BAA6B,EAAE,MAAM,8CAA8C,CAAC;AAC7F,OAAO,EAAE,4BAA4B,EAAE,MAAM,yCAAyC,CAAC;AACvF,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,8BAA8B,EAAE,MAAM,2CAA2C,CAAC;AAC3F,OAAO,EAAE,kCAAkC,EAAE,MAAM,4CAA4C,CAAC;AAChG,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,gCAAgC,EAAE,MAAM,6CAA6C,CAAC;AAC/F,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAClG,OAAO,EAAE,mCAAmC,EAAE,MAAM,gDAAgD,CAAC;AACrG,OAAO,EAAE,8BAA8B,EAAE,MAAM,2CAA2C,CAAC;AAC3F,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;A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wB;IACxB,uBAAuB;IACvB,oBAAoB;IACpB,8BAA8B;IAC9B,kCAAkC;IAClC,6BAA6B;IAC7B,mCAAmC;IACnC,8BAA8B;IAC9B,0BAA0B;IAC1B,yBAAyB;IACzB,iBAAiB;IACjB,iCAAiC;IACjC,yBAAyB;IACzB,+BAA+B;IAC/B,gCAAgC;IAChC,sBAAsB;IACtB,sBAAsB;IACtB,gCAAgC;IAChC,6BAA6B;IAC7B,iBAAiB;IACjB,wBAAwB;IACxB,uBAAuB;IACvB,gBAAgB;IAChB,0BAA0B;IAC1B,uBAAuB;IACvB,cAAc;IACd,gCAAgC;IAChC,qCAAqC;IACrC,qBAAqB;IACrB,gCAAgC;IAChC,yBAAyB;IACzB,kBAAkB;IAClB,iBAAiB;IACjB,8BAA8B;IAC9B,4BAA4B;IAC5B,mBAAmB;IACnB,gBAAgB;IAChB,uBAAuB;IACvB,cAAc;IACd,mBAAmB;IACnB,uBAAuB;IACvB,4BAA4B;IAC5B,cAAc;IACd,YAAY;IACZ,uBAAuB;IACvB,8BAA8B;IAC9B,yBAAyB;IACzB,qBAAqB;IACrB,oBAAoB;IACpB,yBAAyB;IACzB,+BAA+B;IAC/B,4BAA4B;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,YAAY,CAAC;IAClC,KAAK;IACL,QAAQ,EAAE;QACR,GAAG,EAAE;YACH,MAAM,EAAE,MAAM,CAAC,WAAW,CACxB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;gBAClB,gDAAgD,IAAI,CAAC,IAAI,EAAE;gBAC3D,IAAI,KAAK,+BAA+B;aACzC,CAAC,CACH;SACF;KACF;CACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"linter.js","sourceRoot":"","sources":["../../src/linter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAA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,sBAAsB;IACtB,sBAAsB;IACtB,gCAAgC;IAChC,6BAA6B;IAC7B,iBAAiB;IACjB,wBAAwB;IACxB,uBAAuB;IACvB,gBAAgB;IAChB,0BAA0B;IAC1B,uBAAuB;IACvB,cAAc;IACd,gCAAgC;IAChC,qCAAqC;IACrC,qBAAqB;IACrB,6BAA6B;IAC7B,gCAAgC;IAChC,yBAAyB;IACzB,kBAAkB;IAClB,iBAAiB;IACjB,8BAA8B;IAC9B,4BAA4B;IAC5B,mBAAmB;IACnB,gBAAgB;IAChB,uBAAuB;IACvB,cAAc;IACd,mBAAmB;IACnB,uBAAuB;IACvB,4BAA4B;IAC5B,cAAc;IACd,YAAY;IACZ,uBAAuB;IACvB,8BAA8B;IAC9B,yBAAyB;IACzB,qBAAqB;IACrB,oBAAoB;IACpB,yBAAyB;IACzB,+BAA+B;IAC/B,4BAA4B;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,YAAY,CAAC;IAClC,KAAK;IACL,QAAQ,EAAE;QACR,GAAG,EAAE;YACH,MAAM,EAAE,MAAM,CAAC,WAAW,CACxB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;gBAClB,gDAAgD,IAAI,CAAC,IAAI,EAAE;gBAC3D,IAAI,KAAK,+BAA+B;aACzC,CAAC,CACH;SACF;KACF;CACF,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The @armCommonTypesVersion decorator should
|
|
3
|
-
* common-types version used by the service.
|
|
2
|
+
* The @armCommonTypesVersion decorator should select the latest ARM common-types version.
|
|
4
3
|
*/
|
|
5
4
|
export declare const armCommonTypesVersionRule: import("@typespec/compiler").LinterRuleDefinition<"arm-common-types-version", {
|
|
6
5
|
readonly default: "Specify the ARM common-types version using the @armCommonTypesVersion decorator on the service namespace or on each version of the service version enum.";
|
|
6
|
+
readonly outdated: import("@typespec/compiler").CallableMessage<["latestVersion", "currentVersion"]>;
|
|
7
7
|
}, Record<string, never>>;
|
|
8
8
|
//# sourceMappingURL=arm-common-types-version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arm-common-types-version.d.ts","sourceRoot":"","sources":["../../../src/rules/arm-common-types-version.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"arm-common-types-version.d.ts","sourceRoot":"","sources":["../../../src/rules/arm-common-types-version.ts"],"names":[],"mappings":"AAYA;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;yBAoEpC,CAAC"}
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { createRule, fileRef } from "@typespec/compiler";
|
|
2
|
-
import { getAllHttpServices } from "@typespec/http";
|
|
1
|
+
import { createRule, fileRef, listServices, paramMessage, } from "@typespec/compiler";
|
|
3
2
|
import { getVersion } from "@typespec/versioning";
|
|
3
|
+
import { getArmCommonTypesVersion, getArmCommonTypesVersions } from "../common-types.js";
|
|
4
4
|
import { getArmProviderNamespace } from "../namespace.js";
|
|
5
5
|
/**
|
|
6
|
-
* The @armCommonTypesVersion decorator should
|
|
7
|
-
* common-types version used by the service.
|
|
6
|
+
* The @armCommonTypesVersion decorator should select the latest ARM common-types version.
|
|
8
7
|
*/
|
|
9
8
|
export const armCommonTypesVersionRule = createRule({
|
|
10
9
|
name: "arm-common-types-version",
|
|
11
10
|
docs: fileRef.fromPackageRoot("src/rules/arm-common-types-version.md"),
|
|
12
11
|
severity: "warning",
|
|
13
|
-
description: "Specify the ARM common-types version using @armCommonTypesVersion.",
|
|
12
|
+
description: "Specify the latest ARM common-types version using @armCommonTypesVersion.",
|
|
14
13
|
url: "https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/arm-common-types-version",
|
|
15
14
|
messages: {
|
|
16
15
|
default: "Specify the ARM common-types version using the @armCommonTypesVersion decorator on the service namespace or on each version of the service version enum.",
|
|
16
|
+
outdated: paramMessage `Use the latest ARM common-types version '${"latestVersion"}' instead of '${"currentVersion"}'.`,
|
|
17
17
|
},
|
|
18
18
|
create(context) {
|
|
19
19
|
return {
|
|
20
20
|
root: (program) => {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
// The common-types registry stores versions newest first.
|
|
22
|
+
const latestVersion = getArmCommonTypesVersions(program)?.allVersions[0]?.name;
|
|
23
|
+
for (const { type: namespace } of listServices(program)) {
|
|
24
|
+
if (!getArmProviderNamespace(program, namespace)) {
|
|
24
25
|
continue;
|
|
25
26
|
}
|
|
26
|
-
const versionMap = getVersion(program,
|
|
27
|
+
const versionMap = getVersion(program, namespace);
|
|
27
28
|
// If the namespace is versioned and not all versions have the
|
|
28
29
|
// common-types version and if the service namespace doesn't have a
|
|
29
30
|
// common-types version, raise a diagnostic.
|
|
@@ -31,10 +32,29 @@ export const armCommonTypesVersionRule = createRule({
|
|
|
31
32
|
versionMap
|
|
32
33
|
.getVersions()
|
|
33
34
|
.every((version) => !!version.enumMember.decorators.find((x) => x.definition?.name === "@armCommonTypesVersion"))) &&
|
|
34
|
-
!
|
|
35
|
+
!namespace.decorators.find((x) => x.definition?.name === "@armCommonTypesVersion")) {
|
|
35
36
|
context.reportDiagnostic({
|
|
36
|
-
|
|
37
|
+
messageId: "default",
|
|
38
|
+
target: namespace,
|
|
37
39
|
});
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
if (latestVersion === undefined) {
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
const namespaceVersion = getArmCommonTypesVersion(program, namespace);
|
|
46
|
+
const targets = versionMap
|
|
47
|
+
? versionMap.getVersions().map((version) => version.enumMember)
|
|
48
|
+
: [namespace];
|
|
49
|
+
for (const target of targets) {
|
|
50
|
+
const currentVersion = getArmCommonTypesVersion(program, target) ?? namespaceVersion;
|
|
51
|
+
if (currentVersion !== undefined && currentVersion !== latestVersion) {
|
|
52
|
+
context.reportDiagnostic({
|
|
53
|
+
messageId: "outdated",
|
|
54
|
+
target,
|
|
55
|
+
format: { latestVersion, currentVersion },
|
|
56
|
+
});
|
|
57
|
+
}
|
|
38
58
|
}
|
|
39
59
|
}
|
|
40
60
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arm-common-types-version.js","sourceRoot":"","sources":["../../../src/rules/arm-common-types-version.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"arm-common-types-version.js","sourceRoot":"","sources":["../../../src/rules/arm-common-types-version.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACV,OAAO,EACP,YAAY,EACZ,YAAY,GACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AACzF,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAE1D;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,UAAU,CAAC;IAClD,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,OAAO,CAAC,eAAe,CAAC,uCAAuC,CAAC;IACtE,QAAQ,EAAE,SAAS;IACnB,WAAW,EAAE,2EAA2E;IACxF,GAAG,EAAE,6GAA6G;IAClH,QAAQ,EAAE;QACR,OAAO,EACL,0JAA0J;QAC5J,QAAQ,EAAE,YAAY,CAAA,4CAA4C,eAAe,iBAAiB,gBAAgB,IAAI;KACvH;IACD,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,IAAI,EAAE,CAAC,OAAgB,EAAE,EAAE;gBACzB,0DAA0D;gBAC1D,MAAM,aAAa,GAAG,yBAAyB,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC;gBAC/E,KAAK,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC;oBACxD,IAAI,CAAC,uBAAuB,CAAC,OAAO,EAA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OAAO,CAAC,gBAAgB,CAAC;gCACvB,SAAS,EAAE,UAAU;gCACrB,MAAM;gCACN,MAAM,EAAE,EAAE,aAAa,EAAE,cAAc,EAAE;6BAC1C,CAAC,CAAC;wBACL,CAAC;oBACH,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const lroMissingPollingMetadataRule: import("@typespec/compiler").LinterRuleDefinition<"lro-missing-polling-metadata", {
|
|
2
|
+
readonly default: "ARM operations indicating asynchronous processing must have native polling metadata. Use an asynchronous ARM template or preserve supported semantic LRO headers.";
|
|
3
|
+
}, Record<string, never>>;
|
|
4
|
+
//# sourceMappingURL=lro-missing-polling-metadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lro-missing-polling-metadata.d.ts","sourceRoot":"","sources":["../../../src/rules/lro-missing-polling-metadata.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,6BAA6B;;yBAsDxC,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { getLroMetadata } from "@azure-tools/typespec-azure-core";
|
|
2
|
+
import { createRule, fileRef, isTemplateDeclaration, isTemplateDeclarationOrInstance, listServices, } from "@typespec/compiler";
|
|
3
|
+
import { getHttpOperation } from "@typespec/http";
|
|
4
|
+
import { isArmCollectionAction } from "../operations.js";
|
|
5
|
+
const pollingStatusCodes = new Set([200, 201, 202, 204]);
|
|
6
|
+
const pollingHeaders = new Set(["location", "azure-asyncoperation"]);
|
|
7
|
+
const pollingVerbs = new Set(["put", "patch", "post", "delete"]);
|
|
8
|
+
export const lroMissingPollingMetadataRule = createRule({
|
|
9
|
+
name: "lro-missing-polling-metadata",
|
|
10
|
+
docs: fileRef.fromPackageRoot("src/rules/lro-missing-polling-metadata.md"),
|
|
11
|
+
description: "ARM operations indicating asynchronous processing must have native polling metadata.",
|
|
12
|
+
severity: "warning",
|
|
13
|
+
url: "https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/lro-missing-polling-metadata",
|
|
14
|
+
messages: {
|
|
15
|
+
default: "ARM operations indicating asynchronous processing must have native polling metadata. Use an asynchronous ARM template or preserve supported semantic LRO headers.",
|
|
16
|
+
},
|
|
17
|
+
create(context) {
|
|
18
|
+
const serviceNamespaces = new Set(listServices(context.program).map((service) => service.type));
|
|
19
|
+
return {
|
|
20
|
+
operation(operation) {
|
|
21
|
+
const container = operation.interface ?? operation.namespace;
|
|
22
|
+
if (isTemplateDeclarationOrInstance(operation) ||
|
|
23
|
+
!container ||
|
|
24
|
+
container.operations.get(operation.name) !== operation ||
|
|
25
|
+
(operation.interface &&
|
|
26
|
+
(isTemplateDeclaration(operation.interface) ||
|
|
27
|
+
operation.interface.namespace?.interfaces.get(operation.interface.name) !==
|
|
28
|
+
operation.interface))) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
let namespace = operation.namespace;
|
|
32
|
+
while (namespace && !serviceNamespaces.has(namespace)) {
|
|
33
|
+
namespace = namespace.namespace;
|
|
34
|
+
}
|
|
35
|
+
if (!namespace) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const [httpOperation] = getHttpOperation(context.program, operation);
|
|
39
|
+
const requiresAcceptedMetadata = httpOperation.verb === "patch" ||
|
|
40
|
+
(httpOperation.verb === "post" && isArmCollectionAction(context.program, operation));
|
|
41
|
+
const hasAcceptedResponse = requiresAcceptedMetadata &&
|
|
42
|
+
httpOperation.responses.some((response) => response.statusCodes === 202);
|
|
43
|
+
const hasPollingResponse = pollingVerbs.has(httpOperation.verb) && hasPollingHeader(httpOperation.responses);
|
|
44
|
+
if (hasAcceptedResponse || hasPollingResponse) {
|
|
45
|
+
// Metadata resolution can report Core diagnostics even for compliant operations.
|
|
46
|
+
if (getLroMetadata(context.program, operation) === undefined) {
|
|
47
|
+
context.reportDiagnostic({ target: operation });
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
function hasPollingHeader(responses) {
|
|
55
|
+
return responses.some((response) => typeof response.statusCodes === "number" &&
|
|
56
|
+
pollingStatusCodes.has(response.statusCodes) &&
|
|
57
|
+
response.responses.some((content) => Object.keys(content.headers ?? {}).some((name) => pollingHeaders.has(name.toLowerCase()))));
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=lro-missing-polling-metadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lro-missing-polling-metadata.js","sourceRoot":"","sources":["../../../src/rules/lro-missing-polling-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EACL,UAAU,EACV,OAAO,EACP,qBAAqB,EACrB,+BAA+B,EAC/B,YAAY,GACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAA8B,MAAM,gBAAgB,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;AACzD,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,CAAC,UAAU,EAAE,sBAAsB,CAAC,CAAC,CAAC;AACrE,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;AAEjE,MAAM,CAAC,MAAM,6BAA6B,GAAG,UAAU,CAAC;IACtD,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE,OAAO,CAAC,eAAe,CAAC,2CAA2C,CAAC;IAC1E,WAAW,EACT,sFAAsF;IACxF,QAAQ,EAAE,SAAS;IACnB,GAAG,EAAE,iHAAiH;IACtH,QAAQ,EAAE;Q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"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec Azure Resource Manager library",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|
|
@@ -49,23 +49,23 @@
|
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@azure-tools/typespec-azure-core": "^0.73.0 || >= 0.74.0-dev.5",
|
|
51
51
|
"@typespec/compiler": "^1.17.0",
|
|
52
|
-
"@typespec/http": "^1.17.0",
|
|
53
52
|
"@typespec/rest": "^0.87.0",
|
|
53
|
+
"@typespec/http": "^1.17.0",
|
|
54
54
|
"@typespec/openapi": "^1.17.0",
|
|
55
55
|
"@typespec/versioning": "^0.87.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@azure-tools/typespec-azure-core": "^0.73.0 || >= 0.74.0-dev.5",
|
|
59
|
-
"@types/node": "^26.6.
|
|
59
|
+
"@types/node": "^26.6.5",
|
|
60
60
|
"@types/pluralize": "^0.0.33",
|
|
61
61
|
"@vitest/coverage-v8": "^5.0.5",
|
|
62
62
|
"@vitest/ui": "^5.0.5",
|
|
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",
|
|
66
67
|
"@typespec/http": "^1.17.0",
|
|
67
68
|
"@typespec/rest": "^0.87.0",
|
|
68
|
-
"@typespec/compiler": "^1.17.0",
|
|
69
69
|
"@typespec/library-linter": "^0.87.0",
|
|
70
70
|
"@typespec/tspd": "^0.77.1",
|
|
71
71
|
"@typespec/versioning": "^0.87.0",
|