@azure-tools/typespec-azure-core 0.68.0-dev.1 → 0.68.0-dev.3
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 -0
- 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/no-route-parameter-name-mismatch.d.ts +4 -0
- package/dist/src/rules/no-route-parameter-name-mismatch.d.ts.map +1 -0
- package/dist/src/rules/no-route-parameter-name-mismatch.js +86 -0
- package/dist/src/rules/no-route-parameter-name-mismatch.js.map +1 -0
- package/package.json +7 -8
package/README.md
CHANGED
|
@@ -69,6 +69,7 @@ Available ruleSets:
|
|
|
69
69
|
| [`@azure-tools/typespec-azure-core/no-private-usage`](https://azure.github.io/typespec-azure/docs/libraries/azure-core/rules/no-private-usage) | Verify that elements inside Private namespace are not referenced. |
|
|
70
70
|
| [`@azure-tools/typespec-azure-core/no-legacy-usage`](https://azure.github.io/typespec-azure/docs/libraries/azure-core/rules/no-legacy-usage) | Linter warning against using elements from the Legacy namespace |
|
|
71
71
|
| [`@azure-tools/typespec-azure-core/no-query-explode`](https://azure.github.io/typespec-azure/docs/libraries/azure-core/rules/no-query-explode) | It is recommended to serialize query parameter without explode: true |
|
|
72
|
+
| [`@azure-tools/typespec-azure-core/no-route-parameter-name-mismatch`](https://azure.github.io/typespec-azure/docs/libraries/azure-core/rules/no-route-parameter-name-mismatch) | Ensure that operations with the same path use consistent path parameter names. |
|
|
72
73
|
|
|
73
74
|
## Decorators
|
|
74
75
|
|
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":"AAuFA,eAAO,MAAM,OAAO,+CASlB,CAAC"}
|
package/dist/src/linter.js
CHANGED
|
@@ -22,6 +22,7 @@ import { noOpenAPIRule } from "./rules/no-openapi.js";
|
|
|
22
22
|
import { noPrivateUsage } from "./rules/no-private-usage.js";
|
|
23
23
|
import { noQueryExplodeRule } from "./rules/no-query-explode.js";
|
|
24
24
|
import { noResponseBodyRule } from "./rules/no-response-body.js";
|
|
25
|
+
import { noRouteParameterNameMismatchRule } from "./rules/no-route-parameter-name-mismatch.js";
|
|
25
26
|
import { noRpcPathParamsRule } from "./rules/no-rpc-path-params.js";
|
|
26
27
|
import { noStringDiscriminatorRule } from "./rules/no-string-discriminator.js";
|
|
27
28
|
import { noUnnamedUnionRule } from "./rules/no-unnamed-union.js";
|
|
@@ -80,6 +81,7 @@ const rules = [
|
|
|
80
81
|
noPrivateUsage,
|
|
81
82
|
noLegacyUsage,
|
|
82
83
|
noQueryExplodeRule,
|
|
84
|
+
noRouteParameterNameMismatchRule,
|
|
83
85
|
];
|
|
84
86
|
export const $linter = defineLinter({
|
|
85
87
|
rules,
|
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,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,4CAA4C,EAAE,MAAM,kCAAkC,CAAC;AAChG,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C5B,kBAAkB;IAClB,iBAAiB;IACjB,oBAAoB;IACpB,oBAAoB;IACpB,iCAAiC;IACjC,2BAA2B;IAC3B,4BAA4B;IAC5B,gBAAgB;IAChB,qBAAqB;IACrB,yBAAyB;IACzB,oBAAoB;IACpB,gBAAgB;IAChB,cAAc;IACd,aAAa;IACb,kBAAkB;IAClB,gCAAgC;CACjC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,YAAY,CAAC;IAClC,KAAK;IACL,QAAQ,EAAE;QACR,sBAAsB,EAAE;YACtB,MAAM,EAAE;gBACN,CAAC,oCAAoC,yBAAyB,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI;aAC7E;SACF;KACF;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const noRouteParameterNameMismatchRule: import("@typespec/compiler").LinterRuleDefinition<"no-route-parameter-name-mismatch", {
|
|
2
|
+
readonly default: import("@typespec/compiler").CallableMessage<["operationName", "path", "paramName", "expected", "existingOperationName", "existingPath"]>;
|
|
3
|
+
}>;
|
|
4
|
+
//# sourceMappingURL=no-route-parameter-name-mismatch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-route-parameter-name-mismatch.d.ts","sourceRoot":"","sources":["../../../src/rules/no-route-parameter-name-mismatch.ts"],"names":[],"mappings":"AAiCA,eAAO,MAAM,gCAAgC;;EAgF3C,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { createRule, getNamespaceFullName, ignoreDiagnostics, paramMessage, } from "@typespec/compiler";
|
|
2
|
+
import { getHttpOperation } from "@typespec/http";
|
|
3
|
+
import { isExcludedCoreType, isTemplatedInterfaceOperation } from "./utils.js";
|
|
4
|
+
function getFullyQualifiedOperationName(operation) {
|
|
5
|
+
const parts = [];
|
|
6
|
+
if (operation.namespace) {
|
|
7
|
+
parts.push(getNamespaceFullName(operation.namespace));
|
|
8
|
+
}
|
|
9
|
+
if (operation.interface) {
|
|
10
|
+
parts.push(operation.interface.name);
|
|
11
|
+
}
|
|
12
|
+
parts.push(operation.name);
|
|
13
|
+
return parts.join(".");
|
|
14
|
+
}
|
|
15
|
+
export const noRouteParameterNameMismatchRule = createRule({
|
|
16
|
+
name: "no-route-parameter-name-mismatch",
|
|
17
|
+
description: "Ensure that operations with the same path use consistent path parameter names.",
|
|
18
|
+
severity: "warning",
|
|
19
|
+
url: "https://azure.github.io/typespec-azure/docs/libraries/azure-core/rules/no-route-parameter-name-mismatch",
|
|
20
|
+
messages: {
|
|
21
|
+
default: paramMessage `Operation "${"operationName"}" path "${"path"}" has inconsistent parameter name "${"paramName"}" which should be "${"expected"}" to match operation "${"existingOperationName"}" with path "${"existingPath"}"`,
|
|
22
|
+
},
|
|
23
|
+
create(context) {
|
|
24
|
+
// Map from normalized path (params replaced with {}) to first operation seen
|
|
25
|
+
const pathMap = new Map();
|
|
26
|
+
return {
|
|
27
|
+
operation: (operation) => {
|
|
28
|
+
if (isExcludedCoreType(context.program, operation))
|
|
29
|
+
return;
|
|
30
|
+
if (isTemplatedInterfaceOperation(operation))
|
|
31
|
+
return;
|
|
32
|
+
const httpOp = ignoreDiagnostics(getHttpOperation(context.program, operation));
|
|
33
|
+
// Get path parameters
|
|
34
|
+
const pathParams = httpOp.parameters.parameters.filter((p) => p.type === "path");
|
|
35
|
+
const path = httpOp.path;
|
|
36
|
+
// Normalize path by replacing {paramName} with {}
|
|
37
|
+
const normalizedPath = path.replace(/\{[^}]+\}/g, "{}");
|
|
38
|
+
// Skip paths that have no static segments (only parameters and separators),
|
|
39
|
+
// since these are too generic to meaningfully compare parameter names.
|
|
40
|
+
// Also skip paths where two path variables occur in a row with no static
|
|
41
|
+
// segment between them, since it is difficult to reason about such paths.
|
|
42
|
+
if (normalizedPath.replace(/[{}/]/g, "") === "" || normalizedPath.includes("{}/{}")) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
// Extract parameter names in order from the path
|
|
46
|
+
// Note: httpOp.path is the legacy path which strips URI template operators,
|
|
47
|
+
// but we defensively strip any leading +/. /; /# characters for robustness
|
|
48
|
+
const paramNames = [...path.matchAll(/\{([^}]+)\}/g)].map((m) => m[1].replace(/^[+.;#/]/, ""));
|
|
49
|
+
// Build params info with allowReserved status
|
|
50
|
+
const params = paramNames.map((name) => {
|
|
51
|
+
const httpParam = pathParams.find((p) => p.name === name);
|
|
52
|
+
return { name, allowReserved: httpParam?.allowReserved ?? false };
|
|
53
|
+
});
|
|
54
|
+
const existing = pathMap.get(normalizedPath);
|
|
55
|
+
if (existing) {
|
|
56
|
+
// Compare parameter names at each position
|
|
57
|
+
for (let i = 0; i < params.length && i < existing.params.length; i++) {
|
|
58
|
+
// Stop comparison when only one parameter uses allowReserved, since
|
|
59
|
+
// parameters with differing allowReserved settings should not be matched
|
|
60
|
+
// and the rest of the parameters are irrelevant
|
|
61
|
+
if (params[i].allowReserved !== existing.params[i].allowReserved) {
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
if (params[i].name !== existing.params[i].name) {
|
|
65
|
+
context.reportDiagnostic({
|
|
66
|
+
format: {
|
|
67
|
+
operationName: getFullyQualifiedOperationName(operation),
|
|
68
|
+
path,
|
|
69
|
+
paramName: params[i].name,
|
|
70
|
+
expected: existing.params[i].name,
|
|
71
|
+
existingOperationName: getFullyQualifiedOperationName(existing.operation),
|
|
72
|
+
existingPath: existing.path,
|
|
73
|
+
},
|
|
74
|
+
target: operation,
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
pathMap.set(normalizedPath, { path, operation, params });
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
},
|
|
85
|
+
});
|
|
86
|
+
//# sourceMappingURL=no-route-parameter-name-mismatch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-route-parameter-name-mismatch.js","sourceRoot":"","sources":["../../../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
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-azure-core",
|
|
3
|
-
"version": "0.68.0-dev.
|
|
3
|
+
"version": "0.68.0-dev.3",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec Azure Core library",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@typespec/rest": "^0.81.0 || >=0.82.0-dev <0.82.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@types/node": "
|
|
55
|
+
"@types/node": "^25.5.2",
|
|
56
56
|
"@typespec/compiler": "^1.11.0",
|
|
57
57
|
"@typespec/http": "^1.11.0",
|
|
58
58
|
"@typespec/library-linter": "^0.81.0 || >=0.82.0-dev <0.82.0",
|
|
@@ -60,12 +60,11 @@
|
|
|
60
60
|
"@typespec/rest": "^0.81.0 || >=0.82.0-dev <0.82.0",
|
|
61
61
|
"@typespec/tspd": "^0.74.1 || >=0.75.0-dev <0.75.0",
|
|
62
62
|
"@typespec/versioning": "^0.81.0 || >=0.82.0-dev <0.82.0",
|
|
63
|
-
"@vitest/coverage-v8": "^4.1.
|
|
64
|
-
"@vitest/ui": "^4.1.
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"vitest": "^4.1.0"
|
|
63
|
+
"@vitest/coverage-v8": "^4.1.3",
|
|
64
|
+
"@vitest/ui": "^4.1.3",
|
|
65
|
+
"rimraf": "^6.1.3",
|
|
66
|
+
"typescript": "~6.0.2",
|
|
67
|
+
"vitest": "^4.1.3"
|
|
69
68
|
},
|
|
70
69
|
"dependencies": {},
|
|
71
70
|
"scripts": {
|