@azure-tools/typespec-azure-core 0.69.0 → 0.70.0-dev.1
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/lib/auth.tsp +4 -2
- package/lib/traits.tsp +4 -2
- package/package.json +15 -14
package/lib/auth.tsp
CHANGED
|
@@ -42,5 +42,7 @@ model AadOauth2Auth<
|
|
|
42
42
|
* Azure API Key Authentication using the "Ocp-Apim-Subscription-Key" hea
|
|
43
43
|
*/
|
|
44
44
|
@doc("Azure API Key Authentication")
|
|
45
|
-
model AzureApiKeyAuthentication
|
|
46
|
-
|
|
45
|
+
model AzureApiKeyAuthentication is TypeSpec.Http.ApiKeyAuth<
|
|
46
|
+
ApiKeyLocation.header,
|
|
47
|
+
"Ocp-Apim-Subscription-Key"
|
|
48
|
+
>;
|
package/lib/traits.tsp
CHANGED
|
@@ -74,8 +74,10 @@ model QueryParametersTrait<Parameters extends Model, Contexts = unknown> {
|
|
|
74
74
|
* @template Parameters Object describing the query parameters.
|
|
75
75
|
*/
|
|
76
76
|
@trait
|
|
77
|
-
model ListQueryParametersTrait<Parameters extends Model>
|
|
78
|
-
|
|
77
|
+
model ListQueryParametersTrait<Parameters extends Model> is QueryParametersTrait<
|
|
78
|
+
Parameters,
|
|
79
|
+
TraitContext.List
|
|
80
|
+
>;
|
|
79
81
|
|
|
80
82
|
/**
|
|
81
83
|
* Declares a trait that is applied as a request header parameter.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-azure-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.70.0-dev.1",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec Azure Core library",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|
|
@@ -48,24 +48,25 @@
|
|
|
48
48
|
],
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@typespec/compiler": "^1.13.0",
|
|
51
|
-
"@typespec/
|
|
52
|
-
"@typespec/
|
|
51
|
+
"@typespec/http": "^1.13.0",
|
|
52
|
+
"@typespec/rest": "^0.83.0 || >=0.84.0-dev <0.84.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@types/node": "^
|
|
55
|
+
"@types/node": "^26.0.0",
|
|
56
|
+
"@typespec/compiler": "^1.13.0",
|
|
57
|
+
"@typespec/http": "^1.13.0",
|
|
58
|
+
"@typespec/library-linter": "^0.83.0 || >=0.84.0-dev <0.84.0",
|
|
59
|
+
"@typespec/openapi": "^1.13.0",
|
|
60
|
+
"@typespec/rest": "^0.83.0 || >=0.84.0-dev <0.84.0",
|
|
61
|
+
"@typespec/tspd": "^0.75.0 || >=0.76.0-dev <0.76.0",
|
|
62
|
+
"@typespec/versioning": "^0.83.0 || >=0.84.0-dev <0.84.0",
|
|
56
63
|
"@vitest/coverage-v8": "^4.1.3",
|
|
57
64
|
"@vitest/ui": "^4.1.3",
|
|
58
65
|
"rimraf": "^6.1.3",
|
|
59
66
|
"typescript": "~6.0.2",
|
|
60
|
-
"vitest": "^4.1.3"
|
|
61
|
-
"@typespec/compiler": "^1.13.0",
|
|
62
|
-
"@typespec/library-linter": "^0.83.0",
|
|
63
|
-
"@typespec/http": "^1.13.0",
|
|
64
|
-
"@typespec/openapi": "^1.13.0",
|
|
65
|
-
"@typespec/rest": "^0.83.0",
|
|
66
|
-
"@typespec/tspd": "^0.75.0",
|
|
67
|
-
"@typespec/versioning": "^0.83.0"
|
|
67
|
+
"vitest": "^4.1.3"
|
|
68
68
|
},
|
|
69
|
+
"dependencies": {},
|
|
69
70
|
"scripts": {
|
|
70
71
|
"clean": "rimraf ./dist ./temp",
|
|
71
72
|
"build": "pnpm run gen-extern-signature && tsc -p tsconfig.build.json && pnpm run lint-typespec-library",
|
|
@@ -76,8 +77,8 @@
|
|
|
76
77
|
"test:watch": "vitest -w",
|
|
77
78
|
"test:ui": "vitest --ui",
|
|
78
79
|
"test:ci": "vitest run --coverage --reporter=junit --reporter=default",
|
|
79
|
-
"lint": "
|
|
80
|
-
"lint:fix": "
|
|
80
|
+
"lint": "oxlint . --deny-warnings",
|
|
81
|
+
"lint:fix": "oxlint . --fix",
|
|
81
82
|
"regen-docs": "tspd doc . --enable-experimental --llmstxt --output-dir ../../website/src/content/docs/docs/libraries/azure-core/reference"
|
|
82
83
|
}
|
|
83
84
|
}
|