@azure-tools/typespec-azure-resource-manager 0.48.0-dev.3 → 0.48.0-dev.6
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 +1 -1
- package/dist/src/linter.js +2 -2
- package/dist/src/linter.js.map +1 -1
- package/dist/src/rules/arm-resource-invalid-action-verb.d.ts +2 -2
- package/dist/src/rules/arm-resource-invalid-action-verb.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-invalid-action-verb.js +7 -7
- package/dist/src/rules/arm-resource-invalid-action-verb.js.map +1 -1
- package/dist/src/rules/missing-x-ms-identifiers.d.ts.map +1 -1
- package/dist/src/rules/missing-x-ms-identifiers.js +18 -9
- package/dist/src/rules/missing-x-ms-identifiers.js.map +1 -1
- package/lib/common-types/private-links.tsp +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,7 +47,7 @@ Available ruleSets:
|
|
|
47
47
|
| `@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation` | Check for resources that must have a delete operation. |
|
|
48
48
|
| `@azure-tools/typespec-azure-resource-manager/empty-updateable-properties` | Should have updateable properties. |
|
|
49
49
|
| `@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator` | Each resource interface must have an @armResourceOperations decorator. |
|
|
50
|
-
| `@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-action-verb`
|
|
50
|
+
| [`@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. |
|
|
51
51
|
| `@azure-tools/typespec-azure-resource-manager/improper-subscription-list-operation` | Tenant and Extension resources should not define a list by subscription operation. |
|
|
52
52
|
| [`@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. |
|
|
53
53
|
| [`@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. |
|
package/dist/src/linter.js
CHANGED
|
@@ -7,7 +7,7 @@ import { armPutResponseCodesRule } from "./rules/arm-put-response-codes.js";
|
|
|
7
7
|
import { armResourceActionNoSegmentRule } from "./rules/arm-resource-action-no-segment.js";
|
|
8
8
|
import { armResourceDuplicatePropertiesRule } from "./rules/arm-resource-duplicate-property.js";
|
|
9
9
|
import { interfacesRule } from "./rules/arm-resource-interfaces.js";
|
|
10
|
-
import {
|
|
10
|
+
import { armResourceInvalidActionVerbRule } from "./rules/arm-resource-invalid-action-verb.js";
|
|
11
11
|
import { armResourceEnvelopeProperties } from "./rules/arm-resource-invalid-envelope-property.js";
|
|
12
12
|
import { armResourceInvalidVersionFormatRule } from "./rules/arm-resource-invalid-version-format.js";
|
|
13
13
|
import { armResourceKeyInvalidCharsRule } from "./rules/arm-resource-key-invalid-chars.js";
|
|
@@ -50,7 +50,7 @@ const rules = [
|
|
|
50
50
|
deleteOperationMissingRule,
|
|
51
51
|
envelopePropertiesRules,
|
|
52
52
|
interfacesRule,
|
|
53
|
-
|
|
53
|
+
armResourceInvalidActionVerbRule,
|
|
54
54
|
listBySubscriptionRule,
|
|
55
55
|
lroLocationHeaderRule,
|
|
56
56
|
missingXmsIdentifiersRule,
|
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,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,O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;IAClB,8BAA8B;IAC9B,4BAA4B;IAC5B,mBAAmB;IACnB,gBAAgB;IAChB,cAAc;IACd,mBAAmB;IACnB,YAAY;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,YAAY,CAAC;IAClC,KAAK;CACN,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
readonly default: "Actions must be HTTP Post operations.";
|
|
1
|
+
export declare const armResourceInvalidActionVerbRule: import("@typespec/compiler").LinterRuleDefinition<"arm-resource-invalid-action-verb", {
|
|
2
|
+
readonly default: "Actions must be HTTP Post or Get operations.";
|
|
3
3
|
}>;
|
|
4
4
|
//# sourceMappingURL=arm-resource-invalid-action-verb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arm-resource-invalid-action-verb.d.ts","sourceRoot":"","sources":["../../../src/rules/arm-resource-invalid-action-verb.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"arm-resource-invalid-action-verb.d.ts","sourceRoot":"","sources":["../../../src/rules/arm-resource-invalid-action-verb.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gCAAgC;;EAuB3C,CAAC"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { createRule } from "@typespec/compiler";
|
|
2
2
|
import { getOperationVerb } from "@typespec/http";
|
|
3
3
|
import { getActionDetails } from "@typespec/rest";
|
|
4
|
-
import {
|
|
5
|
-
export const
|
|
4
|
+
import { isSourceOperationResourceManagerInternal } from "./utils.js";
|
|
5
|
+
export const armResourceInvalidActionVerbRule = createRule({
|
|
6
6
|
name: "arm-resource-invalid-action-verb",
|
|
7
7
|
severity: "warning",
|
|
8
|
-
description: "Actions must be HTTP Post operations.",
|
|
8
|
+
description: "Actions must be HTTP Post or Get operations.",
|
|
9
|
+
url: "https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/arm-resource-invalid-action-verb",
|
|
9
10
|
messages: {
|
|
10
|
-
default: "Actions must be HTTP Post operations.",
|
|
11
|
+
default: "Actions must be HTTP Post or Get operations.",
|
|
11
12
|
},
|
|
12
13
|
create(context) {
|
|
13
14
|
return {
|
|
14
15
|
operation: (operation) => {
|
|
15
|
-
if (!
|
|
16
|
-
!isSourceOperationResourceManagerInternal(operation)) {
|
|
16
|
+
if (!isSourceOperationResourceManagerInternal(operation)) {
|
|
17
17
|
const actionType = getActionDetails(context.program, operation);
|
|
18
18
|
const verb = getOperationVerb(context.program, operation);
|
|
19
|
-
if (actionType !== undefined && verb !== "post") {
|
|
19
|
+
if (actionType !== undefined && verb !== "post" && verb !== "get") {
|
|
20
20
|
context.reportDiagnostic({
|
|
21
21
|
target: operation,
|
|
22
22
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arm-resource-invalid-action-verb.js","sourceRoot":"","sources":["../../../src/rules/arm-resource-invalid-action-verb.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"arm-resource-invalid-action-verb.js","sourceRoot":"","sources":["../../../src/rules/arm-resource-invalid-action-verb.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,wCAAwC,EAAE,MAAM,YAAY,CAAC;AAEtE,MAAM,CAAC,MAAM,gCAAgC,GAAG,UAAU,CAAC;IACzD,IAAI,EAAE,kCAAkC;IACxC,QAAQ,EAAE,SAAS;IACnB,WAAW,EAAE,8CAA8C;IAC3D,GAAG,EAAE,qHAAqH;IAC1H,QAAQ,EAAE;QACR,OAAO,EAAE,8CAA8C;KACxD;IACD,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,SAAS,EAAE,CAAC,SAAoB,EAAE,EAAE;gBAClC,IAAI,CAAC,wCAAwC,CAAC,SAAS,CAAC,EAAE,CAAC;oBACzD,MAAM,UAAU,GAAG,gBAAgB,CAAC,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;oBAChE,MAAM,IAAI,GAAG,gBAAgB,CAAC,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;oBAC1D,IAAI,UAAU,KAAK,SAAS,IAAI,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC;wBAClE,OAAO,CAAC,gBAAgB,CAAC;4BACvB,MAAM,EAAE,SAAS;yBAClB,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"missing-x-ms-identifiers.d.ts","sourceRoot":"","sources":["../../../src/rules/missing-x-ms-identifiers.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,yBAAyB;;;;
|
|
1
|
+
{"version":3,"file":"missing-x-ms-identifiers.d.ts","sourceRoot":"","sources":["../../../src/rules/missing-x-ms-identifiers.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,yBAAyB;;;;EAsFpC,CAAC"}
|
|
@@ -40,20 +40,29 @@ export const missingXmsIdentifiersRule = createRule({
|
|
|
40
40
|
return true;
|
|
41
41
|
}
|
|
42
42
|
if (Array.isArray(xmsIdentifiers)) {
|
|
43
|
-
for (const
|
|
44
|
-
if (typeof
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
43
|
+
for (const propIdentifier of xmsIdentifiers) {
|
|
44
|
+
if (typeof propIdentifier === "string") {
|
|
45
|
+
const props = propIdentifier.replace(/^\//, "").split("/");
|
|
46
|
+
let element = elementType;
|
|
47
|
+
for (const prop of props) {
|
|
48
|
+
const propertyValue = getProperty(element, prop);
|
|
49
|
+
if (propertyValue === undefined) {
|
|
50
|
+
context.reportDiagnostic({
|
|
51
|
+
messageId: "missingProperty",
|
|
52
|
+
format: { propertyName: prop, targetModelName: elementType.name },
|
|
53
|
+
target: property,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
const propertyType = propertyValue?.type;
|
|
57
|
+
if (propertyType !== undefined && propertyType.kind === "Model") {
|
|
58
|
+
element = propertyType;
|
|
59
|
+
}
|
|
51
60
|
}
|
|
52
61
|
}
|
|
53
62
|
else {
|
|
54
63
|
context.reportDiagnostic({
|
|
55
64
|
messageId: "notArray",
|
|
56
|
-
format: { valueType: typeof
|
|
65
|
+
format: { valueType: typeof propIdentifier },
|
|
57
66
|
target: property,
|
|
58
67
|
});
|
|
59
68
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"missing-x-ms-identifiers.js","sourceRoot":"","sources":["../../../src/rules/missing-x-ms-identifiers.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,YAAY,GACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,CAAC,MAAM,yBAAyB,GAAG,UAAU,CAAC;IAClD,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE,uPAAuP;IACpQ,QAAQ,EAAE,SAAS;IACnB,GAAG,EAAE,6GAA6G;IAClH,QAAQ,EAAE;QACR,OAAO,EAAE,mPAAmP;QAC5P,QAAQ,EAAE,YAAY,CAAA,qEAAqE,WAAW,oCAAoC;QAC1I,eAAe,EAAE,YAAY,CAAA,aAAa,cAAc,sBAAsB,iBAAiB,gGAAgG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;4BACvB,SAAS,EAAE,UAAU;4BACrB,MAAM,EAAE,EAAE,SAAS,EAAE,OAAO,cAAc,EAAE;4BAC5C,MAAM,EAAE,QAAQ;yBACjB,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,gBAAgB,CAAC;oBACvB,SAAS,EAAE,UAAU;oBACrB,MAAM,EAAE,EAAE,SAAS,EAAE,OAAO,cAAc,EAAE;oBAC5C,MAAM,EAAE,QAAQ;iBACjB,CAAC,CAAC;YACL,CAAC;YAED,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -8,6 +8,7 @@ namespace Azure.ResourceManager.CommonTypes;
|
|
|
8
8
|
model PrivateEndpoint {
|
|
9
9
|
/** The resource identifier for private endpoint */
|
|
10
10
|
@visibility("read")
|
|
11
|
+
@typeChangedFrom(CommonTypes.Versions.v4, string)
|
|
11
12
|
id?: Azure.Core.armResourceIdentifier<[
|
|
12
13
|
{
|
|
13
14
|
type: "Microsoft.Network/privateEndpoints";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-azure-resource-manager",
|
|
3
|
-
"version": "0.48.0-dev.
|
|
3
|
+
"version": "0.48.0-dev.6",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec Azure Resource Manager library",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|