@azure-tools/typespec-azure-core 0.43.0-dev.3 → 0.43.0-dev.5
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 +3 -0
- package/dist/src/linter.js.map +1 -1
- package/dist/src/rules/no-string-discriminator.d.ts +5 -0
- package/dist/src/rules/no-string-discriminator.d.ts.map +1 -0
- package/dist/src/rules/no-string-discriminator.js +37 -0
- package/dist/src/rules/no-string-discriminator.js.map +1 -0
- package/lib/foundations.tsp +8 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -64,6 +64,7 @@ Available ruleSets:
|
|
|
64
64
|
| `@azure-tools/typespec-azure-core/spread-discriminated-model` | Check a model with a discriminator has not been used in composition. |
|
|
65
65
|
| `@azure-tools/typespec-azure-core/use-standard-names` | Use recommended names for operations. |
|
|
66
66
|
| `@azure-tools/typespec-azure-core/use-standard-operations` | Operations should be defined using a signature from the Azure.Core namespace. |
|
|
67
|
+
| [`@azure-tools/typespec-azure-core/no-string-discriminator`](https://azure.github.io/typespec-azure/docs/libraries/azure-core/rules/no-string-discriminator) | Azure services discriminated models should define the discriminated property as an extensible union. |
|
|
67
68
|
|
|
68
69
|
## Decorators
|
|
69
70
|
|
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":"AA0EA,eAAO,MAAM,OAAO,+CAgDlB,CAAC"}
|
package/dist/src/linter.js
CHANGED
|
@@ -17,6 +17,7 @@ import { noOffsetDateTimeRule } from "./rules/no-offsetdatetime.js";
|
|
|
17
17
|
import { operationIdRule } from "./rules/no-operation-id.js";
|
|
18
18
|
import { noResponseBodyRule } from "./rules/no-response-body.js";
|
|
19
19
|
import { noRpcPathParamsRule } from "./rules/no-rpc-path-params.js";
|
|
20
|
+
import { noStringDiscriminatorRule } from "./rules/no-string-discriminator.js";
|
|
20
21
|
import { nonBreakingVersioningRule } from "./rules/non-breaking-versioning.js";
|
|
21
22
|
import { preferCsvCollectionFormatRule } from "./rules/prefer-csv-collection-format.js";
|
|
22
23
|
import { preventFormatUse } from "./rules/prevent-format.js";
|
|
@@ -67,6 +68,7 @@ const rules = [
|
|
|
67
68
|
spreadDiscriminatedModelRule,
|
|
68
69
|
useStandardNames,
|
|
69
70
|
useStandardOperations,
|
|
71
|
+
noStringDiscriminatorRule,
|
|
70
72
|
];
|
|
71
73
|
export const $linter = defineLinter({
|
|
72
74
|
rules,
|
|
@@ -105,6 +107,7 @@ export const $linter = defineLinter({
|
|
|
105
107
|
[`@azure-tools/typespec-azure-core/${friendlyNameRule.name}`]: true,
|
|
106
108
|
[`@azure-tools/typespec-azure-core/${noEnumRule.name}`]: true,
|
|
107
109
|
[`@azure-tools/typespec-azure-core/${noClosedLiteralUnionRule.name}`]: true,
|
|
110
|
+
[`@azure-tools/typespec-azure-core/${noStringDiscriminatorRule.name}`]: true,
|
|
108
111
|
},
|
|
109
112
|
extends: ["@typespec/http/all"],
|
|
110
113
|
},
|
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,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AACzF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AC,IAAI,EAAE,CAAC,EAAE,IAAI;gBACnE,CAAC,oCAAoC,2BAA2B,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI;gBAC9E,CAAC,oCAAoC,oBAAoB,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI;gBACvE,CAAC,oCAAoC,oBAAoB,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI;gBACvE,CAAC,oCAAoC,4CAA4C,CAAC,IAAI,EAAE,CAAC,EACvF,IAAI;gBACN,CAAC,oCAAoC,gBAAgB,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI;gBACnE,CAAC,oCAAoC,gBAAgB,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI;gBACnE,CAAC,oCAAoC,UAAU,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI;gBAC7D,CAAC,oCAAoC,wBAAwB,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI;gBAC3E,CAAC,oCAAoC,yBAAyB,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI;aAC7E;YACD,OAAO,EAAE,CAAC,oBAAoB,CAAC;SAChC;QACD,sBAAsB,EAAE;YACtB,MAAM,EAAE;gBACN,CAAC,oCAAoC,yBAAyB,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK;aAC9E;SACF;KACF;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const noStringDiscriminatorRule: import("@typespec/compiler").LinterRuleDefinition<"no-string-discriminator", {
|
|
2
|
+
readonly default: "Use an extensible union instead of a plain string (ex: `union PetKind { cat: \"cat\", dog: \"dog\", string };`)";
|
|
3
|
+
readonly noProp: import("@typespec/compiler").CallableMessage<[string]>;
|
|
4
|
+
}>;
|
|
5
|
+
//# sourceMappingURL=no-string-discriminator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-string-discriminator.d.ts","sourceRoot":"","sources":["../../../src/rules/no-string-discriminator.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB;;;EAmCpC,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { createRule, getDiscriminator, paramMessage } from "@typespec/compiler";
|
|
2
|
+
export const noStringDiscriminatorRule = createRule({
|
|
3
|
+
name: "no-string-discriminator",
|
|
4
|
+
description: "Azure services discriminated models should define the discriminated property as an extensible union.",
|
|
5
|
+
severity: "warning",
|
|
6
|
+
url: "https://azure.github.io/typespec-azure/docs/libraries/azure-core/rules/no-string-discriminator",
|
|
7
|
+
messages: {
|
|
8
|
+
default: `Use an extensible union instead of a plain string (ex: \`union PetKind { cat: "cat", dog: "dog", string };\`)`,
|
|
9
|
+
noProp: paramMessage `Discriminated model should define an the discriminator property ${"propName"} with an extensible union as type.`,
|
|
10
|
+
},
|
|
11
|
+
create(context) {
|
|
12
|
+
return {
|
|
13
|
+
model: (model) => {
|
|
14
|
+
const discriminator = getDiscriminator(context.program, model);
|
|
15
|
+
if (discriminator === undefined) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
const prop = model.properties.get(discriminator.propertyName);
|
|
19
|
+
if (prop === undefined) {
|
|
20
|
+
context.reportDiagnostic({
|
|
21
|
+
format: { propName: discriminator.propertyName },
|
|
22
|
+
target: model,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
if (prop.type.kind !== "Union") {
|
|
27
|
+
context.reportDiagnostic({
|
|
28
|
+
format: { propName: discriminator.propertyName },
|
|
29
|
+
target: prop,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=no-string-discriminator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-string-discriminator.js","sourceRoot":"","sources":["../../../src/rules/no-string-discriminator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAE,gBAAgB,EAA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lroStatus
|
|
18
|
-
|
|
18
|
+
union OperationState {
|
|
19
19
|
@doc("The operation has not started.")
|
|
20
|
-
NotStarted,
|
|
20
|
+
NotStarted: "NotStarted",
|
|
21
21
|
|
|
22
22
|
@doc("The operation is in progress.")
|
|
23
|
-
Running,
|
|
23
|
+
Running: "Running",
|
|
24
24
|
|
|
25
25
|
@doc("The operation has completed successfully.")
|
|
26
|
-
Succeeded,
|
|
26
|
+
Succeeded: "Succeeded",
|
|
27
27
|
|
|
28
28
|
@doc("The operation has failed.")
|
|
29
|
-
Failed,
|
|
29
|
+
Failed: "Failed",
|
|
30
30
|
|
|
31
31
|
@doc("The operation has been canceled by the user.")
|
|
32
|
-
Canceled,
|
|
32
|
+
Canceled: "Canceled",
|
|
33
|
+
|
|
34
|
+
string,
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
/**
|
package/package.json
CHANGED