@azure-tools/typespec-azure-core 0.44.0-dev.1 → 0.44.0
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 -39
- package/dist/src/linter.js.map +1 -1
- package/package.json +11 -12
package/README.md
CHANGED
|
@@ -65,6 +65,7 @@ Available ruleSets:
|
|
|
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
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. |
|
|
68
|
+
| `@azure-tools/typespec-azure-core/friendly-name` | Ensures that @friendlyName is used as intended. |
|
|
68
69
|
|
|
69
70
|
## Decorators
|
|
70
71
|
|
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":"AA2EA,eAAO,MAAM,OAAO,+CASlB,CAAC"}
|
package/dist/src/linter.js
CHANGED
|
@@ -69,51 +69,14 @@ const rules = [
|
|
|
69
69
|
useStandardNames,
|
|
70
70
|
useStandardOperations,
|
|
71
71
|
noStringDiscriminatorRule,
|
|
72
|
+
friendlyNameRule,
|
|
72
73
|
];
|
|
73
74
|
export const $linter = defineLinter({
|
|
74
75
|
rules,
|
|
75
76
|
ruleSets: {
|
|
76
|
-
all: {
|
|
77
|
-
enable: {
|
|
78
|
-
[`@azure-tools/typespec-azure-core/${apiVersionRule.name}`]: true,
|
|
79
|
-
[`@azure-tools/typespec-azure-core/${authRequiredRule.name}`]: true,
|
|
80
|
-
[`@azure-tools/typespec-azure-core/${operationIdRule.name}`]: true,
|
|
81
|
-
[`@azure-tools/typespec-azure-core/${bodyArrayRule.name}`]: true,
|
|
82
|
-
[`@azure-tools/typespec-azure-core/${byosRule.name}`]: true,
|
|
83
|
-
[`@azure-tools/typespec-azure-core/${casingRule.name}`]: true,
|
|
84
|
-
[`@azure-tools/typespec-azure-core/${compositionOverInheritanceRule.name}`]: true,
|
|
85
|
-
[`@azure-tools/typespec-azure-core/${spreadDiscriminatedModelRule.name}`]: true,
|
|
86
|
-
[`@azure-tools/typespec-azure-core/${preferCsvCollectionFormatRule.name}`]: true,
|
|
87
|
-
[`@azure-tools/typespec-azure-core/${knownEncodingRule.name}`]: true,
|
|
88
|
-
[`@azure-tools/typespec-azure-core/${useStandardOperations.name}`]: true,
|
|
89
|
-
[`@azure-tools/typespec-azure-core/${noErrorStatusCodesRule.name}`]: true,
|
|
90
|
-
[`@azure-tools/typespec-azure-core/${noNullableRule.name}`]: true,
|
|
91
|
-
[`@azure-tools/typespec-azure-core/${noOffsetDateTimeRule.name}`]: true,
|
|
92
|
-
[`@azure-tools/typespec-azure-core/${noRpcPathParamsRule.name}`]: true,
|
|
93
|
-
[`@azure-tools/typespec-azure-core/${noExplicitRoutesResourceOps.name}`]: true,
|
|
94
|
-
[`@azure-tools/typespec-azure-core/${noResponseBodyRule.name}`]: true,
|
|
95
|
-
[`@azure-tools/typespec-azure-core/${preventFormatUse.name}`]: true,
|
|
96
|
-
[`@azure-tools/typespec-azure-core/${preventMultipleDiscriminator.name}`]: true,
|
|
97
|
-
[`@azure-tools/typespec-azure-core/${preventRestLibraryInterfaces.name}`]: true,
|
|
98
|
-
[`@azure-tools/typespec-azure-core/${preventUnknownType.name}`]: true,
|
|
99
|
-
[`@azure-tools/typespec-azure-core/${recordTypeRule.name}`]: true,
|
|
100
|
-
[`@azure-tools/typespec-azure-core/${responseSchemaMultiStatusCodeRule.name}`]: true,
|
|
101
|
-
[`@azure-tools/typespec-azure-core/${propertyNameRule.name}`]: true,
|
|
102
|
-
[`@azure-tools/typespec-azure-core/${rpcOperationRequestBodyRule.name}`]: true,
|
|
103
|
-
[`@azure-tools/typespec-azure-core/${requireDocumentation.name}`]: true,
|
|
104
|
-
[`@azure-tools/typespec-azure-core/${requireKeyVisibility.name}`]: true,
|
|
105
|
-
[`@azure-tools/typespec-azure-core/${longRunningOperationsRequirePollingOperation.name}`]: true,
|
|
106
|
-
[`@azure-tools/typespec-azure-core/${useStandardNames.name}`]: true,
|
|
107
|
-
[`@azure-tools/typespec-azure-core/${friendlyNameRule.name}`]: true,
|
|
108
|
-
[`@azure-tools/typespec-azure-core/${noEnumRule.name}`]: true,
|
|
109
|
-
[`@azure-tools/typespec-azure-core/${noClosedLiteralUnionRule.name}`]: true,
|
|
110
|
-
[`@azure-tools/typespec-azure-core/${noStringDiscriminatorRule.name}`]: true,
|
|
111
|
-
},
|
|
112
|
-
extends: ["@typespec/http/all"],
|
|
113
|
-
},
|
|
114
77
|
"canonical-versioning": {
|
|
115
78
|
enable: {
|
|
116
|
-
[`@azure-tools/typespec-azure-core/${nonBreakingVersioningRule.name}`]:
|
|
79
|
+
[`@azure-tools/typespec-azure-core/${nonBreakingVersioningRule.name}`]: true,
|
|
117
80
|
},
|
|
118
81
|
},
|
|
119
82
|
},
|
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,O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-tools/typespec-azure-core",
|
|
3
|
-
"version": "0.44.0
|
|
3
|
+
"version": "0.44.0",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec Azure Core library",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|
|
@@ -39,27 +39,26 @@
|
|
|
39
39
|
"!dist/test/**"
|
|
40
40
|
],
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@typespec/compiler": "~0.
|
|
43
|
-
"@typespec/http": "~0.
|
|
44
|
-
"@typespec/rest": "~0.
|
|
42
|
+
"@typespec/compiler": "~0.58.0",
|
|
43
|
+
"@typespec/http": "~0.58.0",
|
|
44
|
+
"@typespec/rest": "~0.58.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/node": "~18.11.19",
|
|
48
|
-
"@typespec/compiler": "~0.57.0 || >=0.58.0-dev <0.58.0",
|
|
49
|
-
"@typespec/http": "~0.57.0 || >=0.58.0-dev <0.58.0",
|
|
50
|
-
"@typespec/library-linter": "~0.57.0 || >=0.58.0-dev <0.58.0",
|
|
51
|
-
"@typespec/openapi": "~0.57.0 || >=0.58.0-dev <0.58.0",
|
|
52
|
-
"@typespec/rest": "~0.57.0 || >=0.58.0-dev <0.58.0",
|
|
53
|
-
"@typespec/versioning": "~0.57.0 || >=0.58.0-dev <0.58.0",
|
|
54
48
|
"@vitest/coverage-v8": "^1.6.0",
|
|
55
49
|
"@vitest/ui": "^1.6.0",
|
|
56
50
|
"c8": "^10.1.2",
|
|
57
51
|
"rimraf": "~5.0.7",
|
|
58
52
|
"typescript": "~5.5.3",
|
|
59
53
|
"vitest": "^1.6.0",
|
|
60
|
-
"@typespec/
|
|
54
|
+
"@typespec/compiler": "~0.58.0",
|
|
55
|
+
"@typespec/library-linter": "~0.58.0",
|
|
56
|
+
"@typespec/http": "~0.58.0",
|
|
57
|
+
"@typespec/openapi": "~0.58.0",
|
|
58
|
+
"@typespec/rest": "~0.58.0",
|
|
59
|
+
"@typespec/tspd": "~0.46.0",
|
|
60
|
+
"@typespec/versioning": "~0.58.0"
|
|
61
61
|
},
|
|
62
|
-
"dependencies": {},
|
|
63
62
|
"scripts": {
|
|
64
63
|
"clean": "rimraf ./dist ./temp",
|
|
65
64
|
"build": "tsc -p . && npm run lint-typespec-library",
|